Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / Message Box

Author
Message
wtfmanwtfman
14
Years of Service
User Offline
Joined: 29th Dec 2009
Location:
Posted: 1st Jan 2010 22:50
hey im tryen to make it so that oh lets say the first player wins the game i wont another window to come up the says "p1 wins."
i have seen a few things on how to do it but i dont realy under stnd plz healp
puppyofkosh
17
Years of Service
User Offline
Joined: 9th Jan 2007
Location:
Posted: 1st Jan 2010 23:49
I'm pretty sure you'd have to use the win api for that, so you'd have to have #include "Windows.h" at the top of your code and then the function for a messagebox is something like

Matty H
16
Years of Service
User Offline
Joined: 7th Oct 2008
Location: England
Posted: 2nd Jan 2010 00:26 Edited at: 2nd Jan 2010 00:26
Couldn't get puppy's code working but found this on the web:

wtfmanwtfman
14
Years of Service
User Offline
Joined: 29th Dec 2009
Location:
Posted: 2nd Jan 2010 02:19
ok i will try them out
wtfmanwtfman
14
Years of Service
User Offline
Joined: 29th Dec 2009
Location:
Posted: 2nd Jan 2010 02:28
what am i suposed to put wher it says null i put in null and i get an error
wtfmanwtfman
14
Years of Service
User Offline
Joined: 29th Dec 2009
Location:
Posted: 2nd Jan 2010 02:30
sory for like tripple post but hear is the error i get

1>libcpmtd.lib(xdebug.obj) : error LNK2019: unresolved external symbol __malloc_dbg referenced in function "void * __cdecl operator new(unsigned int,struct std::_DebugHeapTag_t const &,char *,int)" (??2@YAPAXIABU_DebugHeapTag_t@std@@PADH@Z)
1>libcpmtd.lib(xdebug.obj) : error LNK2019: unresolved external symbol __free_dbg referenced in function "void __cdecl operator delete(void *,struct std::_DebugHeapTag_t const &,char *,int)" (??3@YAXPAXABU_DebugHeapTag_t@std@@PADH@Z)
wtfmanwtfman
14
Years of Service
User Offline
Joined: 29th Dec 2009
Location:
Posted: 2nd Jan 2010 02:39
agin realy realy sry but i cant edit my post yet so quad post lol... so basicly the code is this

MessageBox(0, "you message", "who its from", 0);


u can change the type of pop up it is if u change it from a 1 to another number i blelive
Hassan
15
Years of Service
User Offline
Joined: 4th May 2009
Location: <script> alert(1); </script>
Posted: 2nd Jan 2010 08:35
try:


Juggalo Memnoch
16
Years of Service
User Offline
Joined: 22nd Apr 2008
Location:
Posted: 7th Jan 2010 01:05
http://www.functionx.com/bcb/functions/msgbox.htm

This website has more information on what all the arguments are and gives examples how to use them, the only thing is their examples only use 3 arguments you need a fourth argument in the beginning
also you don't need to include any extra header files

here's a quick example

Login to post a reply

Server time is: 2024-11-20 07:20:00
Your offset time is: 2024-11-20 07:20:00