Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- LAME popupbox
- may contain crude humor and reference to your mother
- O.K. lets get started:
- i am using dev-c++ with the default mingw i think whatever aslong as it works I'm fine.
- Code:
- #include <windows.h>
- int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE ,
- LPSTR lpCmdLine, int CmdShw)
- {
- MessageBox(NULL, "dude i fucked your MOM!", "Note", MB_OK);
- return 0;
- }
- lets explain that hizzle my nizzle
- Code:
- int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
- LPSTR lpCmdLine, int nCmdShow)
- WinMain() is pretty much main() where your program starts n00b
- HINSTANCE hInstance that handles the execution modual or whatever that shit is pretty much the the *.exe in memory
- HINSTANCE hPrevInstance hell if i know. are you on windows well ofcoarse you are leave that shit null
- LPSTR lpCmdLine that shit has CMD in it, must mean it has something to do with the command line hell no man that does not handle the program name
- int CmdShw an int to be passed to ShowWindow() dont worry were not there yet
- hInstance do you know what a dll is? yeah that handles em.
- you might also need hPrevInstance
- Code:
- int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
- LPSTR lpCmdLine, int CmdShw)
- ok d00d your noe a l33t c++ programmer now you can impress your freinds with your c00l hax0r skills and popup messages cheers
- more when im not fucking tired - love you homo switch
- brokenbylaw
- Acolyte
- Male Number of posts: 96
- Registration date: 2009-10-30
- Location: snow land with snow - colorado
- View user profile Send private message
- Back to top
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement