Hi,
I am having problem in importing IVI-COM dll to C wrapper dll in Labwindows/CVI. I have to do that for my TestStand application to call the functions of the dll. After registering the COM dll, I have used �Create Activex Controller� option to create .c, .fp and .h files. With this, I was able to create dll but without any prototype info. So, I included the fp file to include prototype info. But while I create my dll with the type lib info, odl file gave error to use SAFEARRAY pointer. So I have declared a structure mySAFEARRAY (same parameters as that of SAFEARRAY) and has replaced all the (SAFEARRAY *) to (mySAFEARRAY *). After doing this, I have created the dll successfully.
Now in TestStand when I have called the dl
l with �Flexible Prototype Adapter�, few of the data types (structures) are not applicable to TestStand. So it is taking all the unknown data types to �long�. When I check the prototype with my C file, it is telling mismatch prototype.
Now, please help me what do we do for the C wrapper dll to work proper. Is the procedure (which I have described above) proper?
I have got one info from NI site, that the functions using the structure parameters should not be exported directly. Instead a wrapper function should be created, with each and every element of the structure as it parameter. Now do we create a wrapper function for each and every function which has the structure parameter in it? I am eagerly waiting for your information. Actually i am new to both CVI and TestStand.
Thank you in advance for your help.
Thank you,
Sasi.