Click here to Skip to main content
15,908,931 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Calling another executable Pin
Gerry7-Mar-01 21:35
Gerry7-Mar-01 21:35 
GeneralGrid Pin
Vickie6-Mar-01 22:55
Vickie6-Mar-01 22:55 
GeneralRe: Grid Pin
l a u r e n6-Mar-01 23:09
l a u r e n6-Mar-01 23:09 
GeneralDoubt in ADO Pin
6-Mar-01 19:19
suss6-Mar-01 19:19 
GeneralRe: Doubt in ADO Pin
l a u r e n6-Mar-01 20:43
l a u r e n6-Mar-01 20:43 
GeneralError message...... Pin
Richard Cheng6-Mar-01 14:15
Richard Cheng6-Mar-01 14:15 
GeneralRe: Error message...... Pin
Christian Graus6-Mar-01 15:00
protectorChristian Graus6-Mar-01 15:00 
GeneralOnly One Instance to be opened... Pin
Manfred Ramosch6-Mar-01 12:12
Manfred Ramosch6-Mar-01 12:12 
Does anybody know how I can force my MFC-Dialogbased-Application to be opened
only once. No second instance should be possible.

I tried it with a flag

BOOL MyInstance = FALSE;

in the InitApplication() - and in the InitInstance() I wrote

if(!MyInstance)
{
MyInstance = TRUE;

CZones dlg;
m_pMainWnd = &dlg;
dlg.DoModal();

}

I thought that InitApplication() is called only once and every further Instance is just
calling InitInstance(). But it looks like every Instance is also calling InitApplication()...


Any Ideas ?


Manfred




GeneralRe: Only One Instance to be opened... Pin
l a u r e n6-Mar-01 12:18
l a u r e n6-Mar-01 12:18 
GeneralRe: Only One Instance to be opened... Pin
Manfred Ramosch6-Mar-01 12:44
Manfred Ramosch6-Mar-01 12:44 
GeneralRe: Only One Instance to be opened... Pin
l a u r e n6-Mar-01 20:38
l a u r e n6-Mar-01 20:38 
GeneralRe: Only One Instance to be opened - alternative Pin
.::RockNix::.6-Mar-01 21:15
.::RockNix::.6-Mar-01 21:15 
GeneralRe: Only One Instance to be opened - alternative Pin
l a u r e n6-Mar-01 22:51
l a u r e n6-Mar-01 22:51 
GeneralRe: Only One Instance to be opened - alternative Pin
.::RockNix::.7-Mar-01 2:24
.::RockNix::.7-Mar-01 2:24 
GeneralRe: Only One Instance to be opened - alternative Pin
James R. Twine7-Mar-01 3:46
James R. Twine7-Mar-01 3:46 
GeneralRe: Only One Instance to be opened - alternative Pin
.::RockNix::.7-Mar-01 4:22
.::RockNix::.7-Mar-01 4:22 
GeneralRe: Only One Instance to be opened - alternative Pin
James R. Twine7-Mar-01 5:39
James R. Twine7-Mar-01 5:39 
GeneralRe: Only One Instance to be opened... Pin
James R. Twine7-Mar-01 3:34
James R. Twine7-Mar-01 3:34 
QuestionWhy does Seek fail in ADO, even though it should support it? Pin
Brendan Tregear6-Mar-01 11:28
Brendan Tregear6-Mar-01 11:28 
AnswerRe: Why does Seek fail in ADO, even though it should support it? Pin
l a u r e n6-Mar-01 11:49
l a u r e n6-Mar-01 11:49 
GeneralMmmm, I suspect you're right... (n/t) Pin
Brendan Tregear6-Mar-01 12:15
Brendan Tregear6-Mar-01 12:15 
GeneralPLEASE HELP: debug_assertion in property page creation Pin
Joan M6-Mar-01 7:45
professionalJoan M6-Mar-01 7:45 
GeneralRe: PLEASE HELP: debug_assertion in property page creation Pin
6-Mar-01 11:05
suss6-Mar-01 11:05 
Generalmessage for christian... Pin
l a u r e n6-Mar-01 11:40
l a u r e n6-Mar-01 11:40 
GeneralRe: message for christian... Pin
Christian Graus6-Mar-01 13:49
protectorChristian Graus6-Mar-01 13:49 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.