- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Link Copied
4 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Steve,
Thanks for that, but I need a few more clues please on how to dynamically activate user32.dll.
Alan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Tested with Intel Visual Fortran but should work with CVF as well.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Steve,
Many Thanks - it worked first time for me, so now I can add it to my collection of unobvious useful routines.
Alan

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page