11-25-2012 11:30 PM
I created a dll in visual C++, try to access it using .Net library APIs of CVI.
I am able to create the object of the class “Class1” correctly, but when I try to invoke a function of the class, I got error -6587(inaccessible error).
I attached my code, dll code for your reference.
11-26-2012 04:11 PM
Can you provide a screen shot of the error you are receiving? Have you marked the functions you are trying to call with extern C to specify that they are going to be used with the C compiler? Please see the followling link which discusses this topic.
http://www.ni.com/white-paper/3341/en#toc9