Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Document Type: Example Program
NI Supported: Yes
Publish Date: Nov 29, 2007


Feedback


Yes No

Related Categories

Related Links - Developer Zone

Related Links - Products and Services

Windows Message Queue Library

14 ratings | 3.93 out of 5
Print

Downloads

Filename: 203639.zip
Requirements: View

Filename: windows_messaging_que.zip
Requirements: View

This collection of VIs allows VI code to receive and process windows messages. The examples can be used to intercept messages that normally go exclusively to the LabVIEW window (such as mouse messages). It can also intercept custom messages posted by other applications, much like our DAQ Events can post messages to applications.

If you are interested in the underlying DLL code, it is also provided. A firm grasp of C++ is necessary. The code also serves as an example of how to set an occurrence from a DLL.

Please read all documentation starting with the readme.txt file in the zip file.

See also the Example Program on 32-bit Windows Utilities (linked below).


Related Links:
Windows Utilities (32-bit)

Requirements


Filename: 203639.zip

Software Requirements


Application Software: LabVIEW Full Development System 5.0
Language(s): Visual C++, LabVIEW

 
Filename: windows_messaging_que.zip

Software Requirements


Application Software: LabVIEW Full Development System 5.0
Language(s): LabVIEW, Visual C++

 
14 ratings | 3.93 out of 5
Print

Reader Comments | Submit a comment »

Version too old
Any chance of reposting these vis as a newer version? LabVIEW 8.6 won't load 5.1 vi's!
- Apr 14, 2009

Limitation With Pointers
There is no support for messages that contain pointers to data, e.g. WM_COPYDATA. And even though the pointer itself can be obtained from lParam, and if LabVIEW provided a way to access the memory at it, the data it pointed to may not be valid anymore since it appears that messages from SendMessage() are already responded to.
- Aug 5, 2008

Limitation On Return Value
A return value cannot be specified for messages from SendMessage(). LabVIEW apparently returns 0.
- Aug 5, 2008

It would be more useful if it showed how to *post* windows messages as well
- Aug 1, 2005

 

Legal
This example program (this "program") was developed by a National Instruments ("NI") Applications Engineer. Although technical support of this program may be made available by National Instruments, this program may not be completely tested and verified, and NI does not guarantee its quality in any way or that NI will continue to support this program with each new revision of related products and drivers. THIS EXAMPLE PROGRAM IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND AND SUBJECT TO CERTAIN RESTRICTIONS AS MORE SPECIFICALLY SET FORTH IN NI.COM'S TERMS OF USE (http://ni.com/legal/termsofuse/unitedstates/us/).