Single Instance Dialog Box
-
I'm trying to create a single instance standalone dialog box with the SetforegroundWindow. Should I register the class and use Findwindow. Thanks
-
I'm trying to create a single instance standalone dialog box with the SetforegroundWindow. Should I register the class and use Findwindow. Thanks
Registering a dialog class is not suported(directly) in older versions of windows(9x and NT). Generally we use mutex with GUID for single instance. Check out the kb article: http://support.microsoft.com/default.aspx?scid=kb;EN-US;q243953
-
I'm trying to create a single instance standalone dialog box with the SetforegroundWindow. Should I register the class and use Findwindow. Thanks
to ensure your application runs only one instance on your InitInstance() { CreateMutex(NULL,false,"ur app"); if(GetLastError()=ERROR_ALREADY_EXISTS) { //alredy there is an instance present //return/something u want to do here } } just Look the previous messageboard entries i told it a thousand times..!!!! Renjith-The CPian.