Sponsor Advertisements
Sponsor Advertisements
|
|
|
#17452 - 11/05/03 01:11 AM
how to insurt a message box into a loop
|
Junior Member
Registered: 11/02/03
Posts: 37
Loc: patchouge n.y. 11772
|
ok i get to include # int main() { int x=0; while(x<10000) { cout<x++;
return 0; } ok and iv tryed a hole buntch of shit to put the fucking message box in there i want it to do the numbers and the message box to pop up and i dont know how someone help
_________________________
Kill or be killed
|
|
Top
|
|
|
|
Sponsor Advertisements
Sponsor Advertisements
|
|
#17455 - 11/05/03 08:12 AM
Re: how to insurt a message box into a loop
|
Member
Registered: 08/28/03
Posts: 240
Loc: New Zealand
|
you'll have to include to get the win32api calls to work.. int MessageBox( HWND hWnd, // handle of owner window LPCTSTR lpText, // address of text in message box LPCTSTR lpCaption, // address of title of message box UINT uType // style of message box ); use silentrage's example as a guide MB_OK is just a type of messagebox MB_ICONWARNING is another just get win32.hlp also known as windows 32 api refrenece
_________________________
The wise make mistakes, the fools repeat them ---------------------------------------- When you have eliminated the impossible, that which remains, however improbable, must be the truth
|
|
Top
|
|
|
|
#17456 - 11/15/03 04:48 AM
Re: how to insurt a message box into a loop
|
Junior Member
Registered: 11/02/03
Posts: 37
Loc: patchouge n.y. 11772
|
i tryed the MessageBox(0, "Message", "Title", MB_OK); shit didnt work any other ideas?
_________________________
Kill or be killed
|
|
Top
|
|
|
|
#17457 - 11/15/03 08:05 AM
Re: how to insurt a message box into a loop
|
Member
Registered: 08/28/03
Posts: 240
Loc: New Zealand
|
why didnt it work.. you have to #include it holds the win32api functions show your new source
#include <iostream>
#include <windows.h>
int main(){
for(int x=0;x<10000;x++){
MessageBox(NULL,"pwnd noobie","long loop huh?",MB_OK);
}
return 0;
} there is a loop for you i wudnt run it if i were u :p make the reitterations smaller
_________________________
The wise make mistakes, the fools repeat them ---------------------------------------- When you have eliminated the impossible, that which remains, however improbable, must be the truth
|
|
Top
|
|
|
|
#17458 - 11/15/03 09:04 AM
Re: how to insurt a message box into a loop
|
Junior Member
Registered: 11/02/03
Posts: 37
Loc: patchouge n.y. 11772
|
whats windows.h like whats it needed for? i got the program and all but whats the differt shit.h used for?
_________________________
Kill or be killed
|
|
Top
|
|
|
|
#17460 - 11/16/03 07:21 AM
Re: how to insurt a message box into a loop
|
Junior Member
Registered: 11/02/03
Posts: 37
Loc: patchouge n.y. 11772
|
k kool got it
_________________________
Kill or be killed
|
|
Top
|
|
|
|
#17462 - 11/17/03 04:29 PM
Re: how to insurt a message box into a loop
|
Junior Member
Registered: 03/31/02
Posts: 93
Loc: Sweden
|
what compiler && windows system are you using?
_________________________
- "It's not my code that's useless it's you loosers being unable to apprecitate it because of your lack of skills!" /zenon - C++ master Apprentice
|
|
Top
|
|
|
|
#17463 - 11/18/03 06:58 AM
Re: how to insurt a message box into a loop
|
Junior Member
Registered: 11/02/03
Posts: 37
Loc: patchouge n.y. 11772
|
im using dev c++ it kool
_________________________
Kill or be killed
|
|
Top
|
|
|
|
#17464 - 11/18/03 06:58 AM
Re: how to insurt a message box into a loop
|
Junior Member
Registered: 11/02/03
Posts: 37
Loc: patchouge n.y. 11772
|
and me windows
_________________________
Kill or be killed
|
|
Top
|
|
|
|
#17465 - 11/18/03 07:54 AM
Re: how to insurt a message box into a loop
|
Member
Registered: 08/28/03
Posts: 240
Loc: New Zealand
|
post your errors and was it with my app or yours.. coz mine works fine
_________________________
The wise make mistakes, the fools repeat them ---------------------------------------- When you have eliminated the impossible, that which remains, however improbable, must be the truth
|
|
Top
|
|
|
|
#17466 - 11/18/03 11:40 AM
Re: how to insurt a message box into a loop
|
Junior Member
Registered: 11/02/03
Posts: 37
Loc: patchouge n.y. 11772
|
its on my comp and im on my moms
_________________________
Kill or be killed
|
|
Top
|
|
|
|
|
Registered: 03/02/02
Posts: 134
|
|
2200 Members
46 Forums
25406 Topics
60576 Posts
Max Online: 1567 @ 04/25/10 10:20 AM
|
|
|
0 registered (),
295
Guests and
298
Spiders online. |
|
Key:
Admin,
Global Mod,
Mod
|
|
|