08-04-2010 07:40 AM
Hello!
I want to use a .net dll in Labwindows/CVI 9.0. Is that possible? (I only have the .dll file. No .lib or .h)
Thanks
08-04-2010 07:55 AM
See here
08-04-2010 10:37 AM
Most likely, you have a .NET assembly - not just a DLL. To call .NET assemblies, you should run the Tools >> Create .NET Controller tool in CVI. This creates a CVI instrument (.c, .h, .fp) that you can use to call your assembly. Click the Help button in the above tool to get more information about this. For examples of CVI programs that call .NET assemblies, see in the <cvi-install-path>/samples/dotnet folder. NOTE: if your assembly is not registered in the .NET Global Assembly Cache (GAC), then you need to call the CDotNetRegisterAssemblyPath CVI .NET library function in your program to indicate where your assembly is located.
08-05-2010 07:11 AM
In fact I just have a .dll (no .fp, .h etc) . I managed to access it in Visual C++.NET but to do so I have to create an object defined from a class that is defined in the dll. My question now is: can I use this dll with Labwindows? If yes..how?
Thanks
08-06-2010 08:53 AM
Is this a .NET DLL (assembly) or a C/C++ DLL? The procedure for using the DLL in CVI is different based on your answer.