Click here to Skip to main content
15,906,816 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionMultiple application.exe Pin
Boder Coder23-Nov-05 23:19
Boder Coder23-Nov-05 23:19 
AnswerRe: Multiple application.exe Pin
toxcct23-Nov-05 23:36
toxcct23-Nov-05 23:36 
AnswerRe: Multiple application.exe Pin
micutzu23-Nov-05 23:38
micutzu23-Nov-05 23:38 
GeneralRe: Multiple application.exe Pin
Owner drawn24-Nov-05 0:15
Owner drawn24-Nov-05 0:15 
GeneralRe: Multiple application.exe Pin
Boder Coder24-Nov-05 0:39
Boder Coder24-Nov-05 0:39 
GeneralRe: Multiple application.exe Pin
Rage24-Nov-05 1:22
professionalRage24-Nov-05 1:22 
GeneralRe: Multiple application.exe Pin
Jagadeesh VN24-Nov-05 1:24
Jagadeesh VN24-Nov-05 1:24 
GeneralRe: Multiple application.exe Pin
Boder Coder24-Nov-05 2:24
Boder Coder24-Nov-05 2:24 
Below I give my code from the project. I have taken exception in the indicated line, what can be reason for this?

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/////////////////////////////////////////////////////////////////////////////
// CEtmenApp initialization

BOOL CEtmenApp::InitInstance()
{
// Standard initialization
// If you are not using these features and wish to reduce the size
// of your final executable, you should remove from the following
// the specific initialization routines you do not need.

if (!AfxSocketInit())
{
AfxMessageBox(IDP_SOCKETS_INIT_FAILED);
return FALSE;
}

#ifdef _AFXDLL
Enable3dControls(); // Call this when using MFC in a shared DLL
#else
Enable3dControlsStatic(); // Call this when linking to MFC statically
#endif

if (instanceChecker.PreviousInstanceRunning())
{
AfxMessageBox(_T("Previous version detected, will now restore it"),
MB_OK);
instanceChecker.ActivatePreviousInstance();
return FALSE;
}

CEtmenDlg dlg;
m_pMainWnd = &dlg;

// If this is the first instance of our App then
// track it so any other instances can find it.

if (!instanceChecker.PreviousInstanceRunning()) //EXCEPTION!!!
instanceChecker.TrackFirstInstanceRunning(); // EXCEPTION!!!!

GeneralRe: Multiple application.exe Pin
toxcct24-Nov-05 2:42
toxcct24-Nov-05 2:42 
GeneralRe: Multiple application.exe Pin
Boder Coder24-Nov-05 2:55
Boder Coder24-Nov-05 2:55 
GeneralRe: Multiple application.exe Pin
Boder Coder24-Nov-05 2:58
Boder Coder24-Nov-05 2:58 
GeneralRe: Multiple application.exe Pin
Blake Miller28-Nov-05 12:58
Blake Miller28-Nov-05 12:58 
QuestionParallel Programming Pin
Gordon Robert Speirs23-Nov-05 23:09
professionalGordon Robert Speirs23-Nov-05 23:09 
Questionproject encryption Pin
pankaj_cout23-Nov-05 23:00
pankaj_cout23-Nov-05 23:00 
AnswerRe: project encryption Pin
toxcct23-Nov-05 23:06
toxcct23-Nov-05 23:06 
QuestionDestruction in C++ Pin
ita_cas23-Nov-05 22:28
ita_cas23-Nov-05 22:28 
AnswerRe: Destruction in C++ Pin
toxcct23-Nov-05 22:32
toxcct23-Nov-05 22:32 
AnswerRe: Destruction in C++ Pin
khan++23-Nov-05 22:35
khan++23-Nov-05 22:35 
AnswerRe: Destruction in C++ Pin
Owner drawn24-Nov-05 0:04
Owner drawn24-Nov-05 0:04 
AnswerRe: Destruction in C++ Pin
Gary R. Wheeler25-Nov-05 3:50
Gary R. Wheeler25-Nov-05 3:50 
QuestionHow do I close another program from my program Pin
shortwave23-Nov-05 22:15
shortwave23-Nov-05 22:15 
AnswerRe: How do I close another program from my program Pin
toxcct23-Nov-05 22:20
toxcct23-Nov-05 22:20 
GeneralRe: How do I close another program from my program Pin
ThatsAlok23-Nov-05 22:40
ThatsAlok23-Nov-05 22:40 
AnswerRe: How do I close another program from my program Pin
Cool Ju23-Nov-05 22:40
Cool Ju23-Nov-05 22:40 
AnswerRe: How do I close another program from my program Pin
sanket.patel25-Nov-05 23:04
sanket.patel25-Nov-05 23:04 

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.