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 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