Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

call library function node

Solved!
Go to solution

hello,

I'm having trouble finding "message" value when I want to use "call library function node".

the problem is this I want to call "send message" function from user32.dll . it needs a message identifier and a window handle.

the message identifier(also known as msg) is a constant that identifies the purpose of a message. for example WM_CAP_EDIT_COPY msg tells the window to do sth. 

the problem is that when we call a function in labview we can't use "WM_PAINT" as msg, because labview doesn't know what wm_paint means instead we should use the constant value. \

In the msdn of microsoft there is a reference for msg commands but it does not say anything about message value.

can any body tell me where I can find the value of the msg constant from?

Thank you

aaa.jpg

0 Kudos
Message 1 of 6
(4,779 Views)

Hi lightgoal,

you'll find this in the  header files (windows.h) or some of them

http://doc.ddart.net/msdn/header/include/windows.h.html

 

Mike

Message 2 of 6
(4,767 Views)

hi Mike,

I didn't find any thing out of that file, my knowledge on this is about "lamp on/off". would you plz explain  a little more aobut it. and also tell me where I can find these files from?

thanks

0 Kudos
Message 3 of 6
(4,752 Views)

Hi lightgoal,

the provided link shows some header files. In these header files you find the definition of the constants. I think you need the windows.h, you can download it with some free Windows SDK's.

 

Mike

Message 4 of 6
(4,749 Views)
Solution
Accepted by lightgoal

Hi,

 

The system WM_ constants defined in WinUser.h file.

Techically all constants up to 0x400 are system and reserved, and from 0x400 usually user defined.

For parameters for system commands, you should proceed to msdn, for example, for WM_PAINT.

In your given example you using multimedia messages. They defined in Vfw.h. For example, description for WM_CAP_EDIT_COPY.

Also see attached file. 

 

Hope it helps,

Andrey.

0 Kudos
Message 5 of 6
(4,740 Views)

Thanks andrey,

the attached file worked, I want to know where I can find a file like this for other messages?

thanks again

0 Kudos
Message 6 of 6
(4,721 Views)