|
-
Feb 21st, 2003, 06:00 AM
#1
Thread Starter
Fanatic Member
display message
What is the most simple method to display a message box in a c++ builder 4 program and quit a c++ builder program?
Last edited by aafuss; Feb 21st, 2003 at 06:05 AM.
A.A. Fussy
Babya Software Group
-
Feb 21st, 2003, 06:12 AM
#2
Hyperactive Member
I have to inform you that most of us here use VC for windows programming.
I heard that Borland website has a forum for BCB users and developers, you may have better luck there.
-
Feb 21st, 2003, 06:37 AM
#3
But message boxes are independent of the compiler. The MessageBox windows API function shows a message box.
For abnormal program termination, try TerminateProcess() or abort().
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Feb 21st, 2003, 06:37 AM
#4
Frenzied Member
You can use the Windows API:
MessageBox
Code:
MessageBox(hwnd, "My Message", "Message Title", MB_OK);
and to quit a console-app it's usually simply returning from the main function (or exit(returnvalue) if you want to app to close immediatly)
For Windowsapps you can use PostQuitMessage or SendMessage with WM_CLOSE
Jop - validweb.nl
Alcohol doesn't solve any problems, but then again, neither does milk.
-
Feb 21st, 2003, 04:42 PM
#5
Thread Starter
Fanatic Member
I think it's close() in bcb+++4 (looked in its help file).
A.A. Fussy
Babya Software Group
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
|