Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

cvicallback?

Good morning,
 
What is CVICALLBACK?  It is the NI example for measuring continuous voltage. 
 
 
 
Sally
0 Kudos
Message 1 of 2
(3,376 Views)
Hi Sally,

CVICALLBACK is definend in <CVI>\include\cvidef.h, and it's basically just __cdecl. Here's some information from the CVI help:

"The CVICALLBACK macro should precede the function name in the declarations and function headers for all user interface callbacks. This ensures that the functions are treated by the compiler as cdecl, even when the default calling convention is stdcall. CVICALLBACK is defined in cvidefs.h, which is included by userint.h. The CVICALLBACK macro is included where necessary in the header files generated by the User Interface Editor and in source code generated by CodeBuilder."

Hope this helps.

Regards,


Message Edited by _Belle on 07-26-2007 10:32 AM

Ebele O.
National Instruments
0 Kudos
Message 2 of 2
(3,364 Views)