LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Windows API

Can we use the Windows API calls:
 
RegisterWindowMessage()
SendMessage()
PostMessage()
 
from CVI 7.0?
 
0 Kudos
Message 1 of 2
(3,203 Views)
Hi JRS, msgdemo sample can help you in using some of these funcions. Sample project is located in \samples\toolbox folder in your computer.
 
As a general rule, to use Windows API you must include some header file defined for every function in Windows SDK: for almost all APIs it's enough to #include <windows.h>, after rewieving sdk documentation to check all hader files your functions need. Also, in some case you will need to add some static special library to your project (this is the case for example of RegisterWindowMessage, which needs the project to be linked to user32.lib): online documentation is a mandatory source of informations in this respect.


Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
Message 2 of 2
(3,185 Views)