Pages: [1]
  Print  
Author Topic: show_message()  (Read 3753 times)
Offline (Male) RetroX
Posted on: November 04, 2008, 01:23:48 PM

Master of all things Linux
Contributor
Location: US
Joined: Apr 2008
Posts: 1055
MSN Messenger - classixretrox@gmail.com
View Profile Email
Here's an alternate for show_message():
Code: [Select]
cpp { #include <windows.h>
MessageBox(argument0,"Message",MB_OKAY); }
Logged
My Box: Phenom II 3.4GHz X4 | ASUS ATI RadeonHD 5770, 1GB GDDR5 RAM | 1x4GB DDR3 SRAM | Arch Linux, x86_64 (Cube) / Windows 7 x64 (Blob)
Quote from: Fede-lasse
Why do all the pro-Microsoft people have troll avatars? :(
Offline (Male) sprintf()
Reply #1 Posted on: November 04, 2008, 04:41:47 PM

"Past Contributor"
Location: S. Wales
Joined: Apr 2008
Posts: 72
MSN Messenger - dmgoron@gmail.com
View Profile Email
Bad MessageBox function.

MessageBox(NULL or a window handle if enigma lets you have one, someCStringMessage, someCStringTitle, MB_OK);

http://msdn.microsoft.com/en-us/library/ms645505(VS.85).aspx
Logged
Offline (Unknown gender) score_under
Reply #2 Posted on: November 05, 2008, 07:00:37 AM

Member
Joined: Aug 2008
Posts: 308

View Profile
And mb_ok == 0...
so mb_ok + mb_ok = mb_ok * 2 = mb_ok | mb_ok = mb_ok & mb_ok = mb_ok ^ mb_ok = mb_ok - mb_ok WHICH DOES NOT EQUAL mb_ok/mb_ok... ever.
Logged
Offline (Male) RetroX
Reply #3 Posted on: November 06, 2008, 04:03:44 PM

Master of all things Linux
Contributor
Location: US
Joined: Apr 2008
Posts: 1055
MSN Messenger - classixretrox@gmail.com
View Profile Email
And mb_ok == 0...mb_ok/mb_ok...
DIVIDE BY ZERO.
Logged
My Box: Phenom II 3.4GHz X4 | ASUS ATI RadeonHD 5770, 1GB GDDR5 RAM | 1x4GB DDR3 SRAM | Arch Linux, x86_64 (Cube) / Windows 7 x64 (Blob)
Quote from: Fede-lasse
Why do all the pro-Microsoft people have troll avatars? :(
Offline (Unknown gender) OniLink10
Reply #4 Posted on: November 06, 2008, 06:23:57 PM
Member
Joined: Jul 2008
Posts: 68

View Profile Email
Here's an alternate for show_message():
Code: [Select]
cpp { #include <windows.h>
MessageBox(argument0,"Message",MB_OKAY); }
You can do Includes in the cpp{...} function?! I CAN ADD SOUND!
Logged
Offline (Unknown gender) score_under
Reply #5 Posted on: November 07, 2008, 12:23:23 PM

Member
Joined: Aug 2008
Posts: 308

View Profile
And mb_ok == 0...mb_ok/mb_ok...
DIVIDE BY ZERO.
Excuse me, but
WHICH DOES NOT EQUAL mb_ok/mb_ok... ever.
Logged
Offline (Male) RetroX
Reply #6 Posted on: November 07, 2008, 07:30:14 PM

Master of all things Linux
Contributor
Location: US
Joined: Apr 2008
Posts: 1055
MSN Messenger - classixretrox@gmail.com
View Profile Email
You can do Includes in the cpp{...} function?!
Umm, duh.  All cpp {} does is take the code and insert it before the compile; it doesn't parse anything.
Logged
My Box: Phenom II 3.4GHz X4 | ASUS ATI RadeonHD 5770, 1GB GDDR5 RAM | 1x4GB DDR3 SRAM | Arch Linux, x86_64 (Cube) / Windows 7 x64 (Blob)
Quote from: Fede-lasse
Why do all the pro-Microsoft people have troll avatars? :(
Offline (Unknown gender) OniLink10
Reply #7 Posted on: November 08, 2008, 07:58:17 PM
Member
Joined: Jul 2008
Posts: 68

View Profile Email
You can do Includes in the cpp{...} function?!
Umm, duh.  All cpp {} does is take the code and insert it before the compile; it doesn't parse anything.
Oh lol. How would I link to a .a File for using a DLL?
Logged
Offline (Unknown gender) score_under
Reply #8 Posted on: November 09, 2008, 07:49:21 AM

Member
Joined: Aug 2008
Posts: 308

View Profile
You'd either have to use GCC to compile it yourself, or you'd have to use LoadLibrary and GetProcAddress.
Logged
Offline (Male) sprintf()
Reply #9 Posted on: November 09, 2008, 10:40:12 AM

"Past Contributor"
Location: S. Wales
Joined: Apr 2008
Posts: 72
MSN Messenger - dmgoron@gmail.com
View Profile Email
#pragma comment(lib, "somelibrary.a")
Logged
Offline (Unknown gender) OniLink10
Reply #10 Posted on: November 10, 2008, 03:54:10 PM
Member
Joined: Jul 2008
Posts: 68

View Profile Email
#pragma comment(lib, "somelibrary.a")
SDL_Mixer Temporary Sound Alternative Time. :D
Logged
Offline (Male) Josh @ Dreamland
Reply #11 Posted on: November 16, 2008, 09:20:26 AM

Prince of all Goldfish
Developer
Location: Ohio, United States
Joined: Feb 2008
Posts: 2925

View Profile Email
>_<"
Logged
"That is the single most cryptic piece of code I have ever seen." -Master PobbleWobble
"I disapprove of what you say, but I will defend to the death your right to say it." -Evelyn Beatrice Hall, Friends of Voltaire
Pages: [1]
  Print