10-06-2010 05:59 PM
Hi
To all
I have a questions for you, I have a dll made in C# 2008 Express and I want to know if is possible to use this dll in a program developed in CVI 6.0, I only have the file .dll, I do not have the header file .h and the file .lib because C# only generate the .dll file in the build.
I do not know if is possible to do this.
Can someone help me with this doubt??
Thanks in advanced for your support.
10-07-2010 12:34 AM
did you check here?
10-07-2010 08:02 AM
Hello
Wolfgang
Thanks for your responce but I have read the document before and I only see one conditions when the dll was made in visual C++ , The compilator C# has diferents things and in this document I do not see some instruccions when the dll was created in C#.
Do you have other idea or other link in where I can see something about this??
Thanks a lot.
10-07-2010 08:31 AM
Well, I am not familiar with C# but I assume that you will need to declare the exported functions as extern C. In CVI then use the Windows SDK functions LoadLibrary and GetProcAddress as explained here.
10-13-2010 01:44 PM
Hello
wolfgang.
I have try of do this that you mentioned below , but not work , because when I try to declare how .C the function declare in C# the compilador send me a error, In fact this is not valid in C#.
I thing that the CVI compilator can not to call a dll development in C# . I only need to confirm this.
Regards.