|
-
Feb 21st, 2002, 12:06 PM
#1
Thread Starter
Member
Using API callls with a WIN32 Console App
I've got a progam which I compiled using VC++ 6.0 as a WIN32 console app. The program is used as a console app. When the program is executed, I would like to display a MsgBox on the desktop. I figured I could use the API to do this... However, I'm not quite sure how to go about doing this.
I'd like to keep it simple (as non-invasive as possible).
Any help would be appreciated.
Thanks!
-
Feb 21st, 2002, 02:41 PM
#2
Monday Morning Lunatic
Code:
#include <windows.h>
// ... somewhere in your code
MessageBox(NULL, "Text", "Caption", MB_OK);
Look up MessageBox in MSDN for more details on the parameters.
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|