LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

messageboxtimeouta

Solved!
Go to solution

Hi,

 

I want to invoke the MessageBoxTimeoutA function from the user32.dll. With the attached code the popup window appears, and 2 seconds later the complete LabView will be down. What is the problem, the parameters?

 

MB

0 Kudos
Message 1 of 3
(2,437 Views)
Solution
Accepted by topic author mitulatbati

Strange, it works for me without any troubles (LabVIEW 2011/Windows 7).

 

MessageBoxTimeoutA.png

 

Otherwise, its not good idea to use undocumented WinAPI function - MessageBoxTimeoutA officially not supported by Microsoft as far as I know.

Also check calling conventions - may be you have C. Shouls be stdcall (WinAPI). And show you code finally instead if gif screenshot. 

 

Andrey.

0 Kudos
Message 2 of 3
(2,430 Views)

It was the problem of the calling convention. I have to use standard (WINAPI), instead of C.

0 Kudos
Message 3 of 3
(2,422 Views)