[Help]Get Some Ideas
Hey guys,
I wrote this code to annoy a friend (haven't finished it yet
), and am wondering what else I could do with it. I would like to make it so you can't close it out very easily. What would I need to do to make that happen? My c++ skills are so bad, I spent forEVER trying to disable the X button...Anyway, any ideas as to what could be done to make it REALLY hard to close out?? Here's the code...
Thanks,
I wrote this code to annoy a friend (haven't finished it yet
), and am wondering what else I could do with it. I would like to make it so you can't close it out very easily. What would I need to do to make that happen? My c++ skills are so bad, I spent forEVER trying to disable the X button...Anyway, any ideas as to what could be done to make it REALLY hard to close out?? Here's the code...Code:
#define _WIN32_WINNT 0x0500
#include <windows.h>
#include <iostream>
using namespace std;
main()
{
int i,d,q;
EnableMenuItem(GetSystemMenu(GetConsoleWindow(), FALSE), SC_CLOSE , MF_GRAYED);
DrawMenuBar(GetConsoleWindow());
cout<<"Please enter the letter 'q' and press 'enter'\n";
cin>>d;
loop:1;
for(i=0; i<=1; i++)
{
if(d='q')
cout<<"HAHAHAHA!!!\n";
}
goto loop;
system("pause");
return 0;
}