LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

type library export warning message

Hi All,
 
I have created a CVI DLL that uses __cdecl instead of __stdcall for it's calling parameter (It is necessary for the DLL to clean up it's own memory stack so __cdecl must be used).  I also wish to create a type library from the function panel for this .DLL so I go to Build->Target Settings->etc. and include the necessary .fp.  So at this point, everything is fine, but when I attempt to build my project, I get a warning message from CVI that says I should be using __stdcall instead of __cdecl and it lists all of my DLL functions.  I can click OK and the DLL builds fine, however I don't want this message to pop up after every build, so my question would be is there anywhere I can turn off this warning?  Perhaps a compiler setting somewhere that I missed?
 
Labwindows 7.0
Windows XP
0 Kudos
Message 1 of 2
(2,679 Views)
CVI only supports exporting __stdcall functions in type library. This is because many environments that consume type libraries are not aware of other calling conventions and may corrupt the call stack when calling such functions. It is recommended that you only expose __stdcall functions in a type library. So you will get this warning from CVI if your project exports __cdecl functions in a type library. As far as I know, there is no way to turn off this warning.
0 Kudos
Message 2 of 2
(2,659 Views)