LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with "Generate Visual Basic Include..." - Invalid parameter type

Dear all,
 
I've been writing an LabWindows/CVI DLL for flashing via serial port. The DLL is quite simple and the its header contains one struct (with members of type int and long) and four functions. Two of the functions have as parameter a pointer to the struct.
Yesterday I receive a new requirement that the DLL should be used from Visual Basic. I'm not really a Visual Basic fun and I do not have experience with it. 
I had a look over the documentation from the ni.com site on how to call my DLL from VB.
I found an article called "How Do I Call a DLL Generated in CVI from Visual Basic?" at http://digital.ni.com/public.nsf/allkb/2803F8307F5C5889862568BD006A96E7
I proceed with the steps described there but I get an error :
Error in header file "<header name>2 at line <line>, column <column> : Invalid Visual Basic parameter type : ' pointer to struct <struct name>'
Can anybody help me to solve this problem ? Can I get some hints on what to do to make the struct define in DLL's header to VB?
Thanks in advance,
Lew
0 Kudos
Message 1 of 2
(2,882 Views)
Hello Lew,

Please see if the suggestions in this thread are useful.

Good luck and best regards,
Shakhina P.
Applications Engineer
National Instruments

0 Kudos
Message 2 of 2
(2,864 Views)