Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.

MessageBoxTimeout

bearoflittlebrain_ol
1,066 Views

There is apparently an undocumented WinAPI MessageBoxTimeout in user32.dll that would be very useful to me, but my attempts to write an interface to it have failed. I am using CVF6.6B. Can anyone help, please?

Search for MessageBoxTimeout on Google and you will know as much as I do. It has the same arguments as MessageBoxEx plus an extra dwMilliseconds argument for the time to end.

Alan

0 Kudos
4 Replies
Steven_L_Intel1
Employee
1,066 Views
It would also appear that it isn't defined in the user32 export library so you have to dynamically activate user32.dll to get to it.
0 Kudos
bearoflittlebrain_ol
1,066 Views
Steve,
Thanks for that, but I need a few more clues please on how to dynamically activate user32.dll.
Alan
0 Kudos
Steven_L_Intel1
Employee
1,066 Views
The attached seems to work. Just USE the module and call the routine. The only thing you can't do is pass NULL as the caption. You should pass 0_WORD as the LanguageID argument.

Tested with Intel Visual Fortran but should work with CVF as well.
0 Kudos
bearoflittlebrain_ol
1,066 Views
Steve,
Many Thanks - it worked first time for me, so now I can add it to my collection of unobvious useful routines.
Alan
0 Kudos
Reply