Hi everyone,
I'm writing a program for a teacher and friend of mine. It's a simple math-aid prog aimed at children up to 10yo.
I was thinking that it would not only be a good idea that a child couldn't shut down the program without a password (obviously), but how do I ensure that only one instance of the program can run at any time?
Am I right in thinking that something should be written somewhere in the following section of code?
Thanks
David
WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR, int)
{
try
{
Application->Initialize();
Application->Title = "Kids Fun";
Application->CreateForm(__classid(TMainForm), &MainForm);
Application->CreateForm(__classid(TMathSetupForm), &MathSetupForm);
Application->CreateForm(__classid(TAboutBox), &AboutBox);
Application->CreateForm(__classid(TPasswordForm), &PasswordForm);
Application->CreateForm(__classid(TSaveFileErrorBox), &SaveFileErrorBox);
Application->Run();
}
catch (Exception &exception)
{
Application->ShowException(&exception);
}
return 0;
}