Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Typedef Error when compiling niScope for DLL using CVI

I am getting the following error when trying to compile a DLL for the NI 5122 digitizer using CVI:

Error creating type library:

All structs, unions, and enums required by exported functions must be typedefs in order to create a type library. The struct/union/enum "niScope_wfmInfo" does not use such a typedef.

I have created a variable and "typedefed" it as niScope_wfmInfo to try and get rid of this error. This did not work. I have tried making several other changes. Some have eliminated the error but created problems with the DLL.

Has anyone had a similar error to this? If so, how did you get around it?

Thanks,

Heather
0 Kudos
Message 1 of 3
(3,069 Views)
Sorry, I meant this post for the Highspeed Digitizer discussion board.
0 Kudos
Message 2 of 3
(3,062 Views)
Hi Heather,

I haven't seen an error like this before. Is this a custom program that you created or is it an example program? If it is a custom program, do you get this same error when trying to create a DLL out of an example program? The example programs are located in C:\Program Files\National Instruments\CVI70\samples\niScope and I would try making a DLL out of one of the simple examples such as "Getting Started". Let me know if this works.

Thanks!

Erick D
NI Applications Engineer
0 Kudos
Message 3 of 3
(3,053 Views)