LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

calling a Visual C++ dll from CVI

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.


Download All
0 Kudos
Message 1 of 2
(2,823 Views)

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

Regards,

Anjelica W.
National Instruments
Product Marketing Manager
FlexLogger and TestStand
0 Kudos
Message 2 of 2
(2,796 Views)