quote:
Originally posted by DJeX
Does MS Visual C++ 6 just substitute the "Application->" and ", "Test", MB_OK" parts for you when you compile the program or that just extra crap Borland adds?
well i reckon VC just auto puts that in to make it more Dev friendly.
if you put the MessageBox call on a button click in a MFC project. a little box thing comes up to tell you what you need.
but see how it says "lpszCaption = NULL" and nType = MB_OK.
well if you leave them out like
code:
MessageBox("im awesome");
then the caption will be auto set to null and the box will only have 1 "Ok" button.
but
if you do it the API way to create windows. usign CreateWindowEx and registering classes and stuff. you'll need to put in all 4 arguments (the handle (0 for desktop), " the caption as a char", "title as char", Button Type (MB_OK or more in API viewer));
hope that makes sense