I'm having a hard time finding any information on this so maybe someone here can enlighten me. I've coded a module in C++/Cli, everything is good, but for some reason in the reference list(When I right-click on the VS project to add a reference), I can't find Microsoft.Speech in the list.
There is another one that's equivalent, it's called System.Speech, but I absolutely need Microsoft.Speech. Since the module is pure managed code, shouldn't I have access to all the .NET modules? Or maybe there is a pack I can download to extend it?
Thanks.
Update:
I'm referring to these two calls:
using Microsoft.Speech.AudioFormat;
using Microsoft.Speech.Recognition;
Which can be found in the Kinect SDK samples. I need those in C++/CLI because I cannot access the kinect's recognizer if I use the System native version.
Just in case you are not able to find Microsoft.Speech.dll in the .NET tab, you can do the following:
Import Microsoft.Speech.dll from the following location:
C:\Windows\assembly\GAC_MSIL\Microsoft.Speech\11.0.0.0__31bf3856ad364e35\Microsoft.Speech.dll
Here's the solution :
#using "Microsoft.Speech.dll"
using namespace Microsoft::Speech;
using namespace Microsoft::Speech::Recognition;
Everything now works perfectly.
Related
I am trying to create a custom library in C# using Visual Studio and then be able to refer to it from code-stages in BP objects. I know that the .dll has to be placed in the Automate folder for BP to see it, but what about .exe, config and all other files? Just placing the .dll only in the Automate folder doesn't seem to work for me. I did reference it under Code Options on the Initialize page and also placed a Namespace under Namespace Imports. But BP still tells me that the library is missing. Do I need to package as NuGet or some other way? I have zero experience doing this, so I am sorry if this is basic.
I was wondering if someone could point out some tutorial or information on how to do this A-Z, or maybe share their experience doing this? Thank you.
If you want to create a DLL to be used with Blue Prism, the best thing to do is to compile the code with all its references and resources into a single DLL.
I have always used Costura Fody to achieve that for usage in BP several times.
I want to use the ilLoadL function from the devIL library using C#. But when I try to add DevIL.dll to my project it gives me this error:
A reference to the "DevIL.dll" could not be added.Please make sure that the file is accessible and that it is a valid assembly or COM component.
Now i've been searching online for a while and it seems that DevIL does not support .NET? There is a .NET wrapper created for it. I tried that but it doesn't contain the ilLoadL function and such. Only the LoadBitmap and LoadILU.
Is there a way to use DevILs ilLoadL function in C#?
Have you tried using the nuget package? http://www.nuget.org/packages/DevIL.redist/
Newly I started working with IronPython in .NET but as I saw some few examples they're making engine with Python.CreateEngine() But the Python object isn't loaded for me however I imported these references.
using IronPython.Hosting;
using IronPython.Runtime;
using Microsoft.Scripting;
using Microsoft.Scripting.Hosting;
I searched around this topic but I couldn't find anything.
Peace Out!
Bit of a tangent, but by far the quickest way of getting going with IronPython is to download a copy of SharpDevelop and use a project template to start you off. You'll sidestep a lot of these initial environment issues.
Did you actually add the assemblies to your project?
I am wondering how to use VAMP Plugins with C# for Visual Studio 2008? I have downloaded multiple VAMP Plugins already. Currently, I have tested them using Sonic Visualiser and it looks great! However, I am having some problems incorporating it to my C# program.
My problem is that whenever I try to reference the .dll file, it gives me an error, something about 'make sure you are referencing a valid assembly or COM object'. How do I get around this?
Thank you very much!
I think you mean these: http://www.vamp-plugins.org/
As far as I can see, they are written in C++, so you can't add them as reference. You need to use P/Invoke to use those plugins.
I am using IKVM to wrap a java application into a dll. I am not particularly familiar with IKVM so I apologize in advance for not providing enough information. Anyway, I am using a c# library that makes a call to a dll created by IKVM. However the library I am using appears to require both IKVM.OpenJDK.ClassLibrary and IKVM.OpenJDK.Core. The only problem is both of these libraries contain java.util, which causes a namespace ambiguity for any class in java.util (Vectors, hastables, etc). I cannot fine a way to reference all instances of objects found in the java.utils class to explicitly use either ClassLibrary or Core. Is there anyway to reference a namespace to instruct my library to use one or the other for java.util calls?
In the current version of IKVM there is no IKVM.OpenJDK.ClassLibrary. It look like that you mix different versions of IKVM.