Advertisement
Guest User

Untitled

a guest
Jul 19th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.67 KB | None | 0 0
  1. LAME popupbox
  2. may contain crude humor and reference to your mother
  3. O.K. lets get started:
  4. i am using dev-c++ with the default mingw i think whatever aslong as it works I'm fine.
  5.  
  6. Code:
  7.  
  8. #include <windows.h>
  9.  
  10. int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE ,
  11. LPSTR lpCmdLine, int CmdShw)
  12. {
  13. MessageBox(NULL, "dude i fucked your MOM!", "Note", MB_OK);
  14. return 0;
  15. }
  16.  
  17.  
  18.  
  19. lets explain that hizzle my nizzle
  20.  
  21. Code:
  22.  
  23. int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
  24. LPSTR lpCmdLine, int nCmdShow)
  25.  
  26.  
  27.  
  28. WinMain() is pretty much main() where your program starts n00b
  29.  
  30. HINSTANCE hInstance that handles the execution modual or whatever that shit is pretty much the the *.exe in memory
  31.  
  32. HINSTANCE hPrevInstance hell if i know. are you on windows well ofcoarse you are leave that shit null
  33. 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
  34. int CmdShw an int to be passed to ShowWindow() dont worry were not there yet
  35. hInstance do you know what a dll is? yeah that handles em.
  36.  
  37. you might also need hPrevInstance
  38.  
  39.  
  40. Code:
  41.  
  42. int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
  43. LPSTR lpCmdLine, int CmdShw)
  44.  
  45.  
  46.  
  47.  
  48. ok d00d your noe a l33t c++ programmer now you can impress your freinds with your c00l hax0r skills and popup messages cheers
  49.  
  50. more when im not fucking tired - love you homo switch
  51.  
  52.  
  53. brokenbylaw
  54. Acolyte
  55.  
  56. Male Number of posts: 96
  57. Registration date: 2009-10-30
  58. Location: snow land with snow - colorado
  59.  
  60. View user profile Send private message
  61.  
  62. Back to top
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement