Click here to Skip to main content
15,917,174 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
AnswerRe: Extending Managed, Sealed Classes in C++/CLI Pin
Luc Pattyn22-Jul-08 4:30
sitebuilderLuc Pattyn22-Jul-08 4:30 
QuestionMultiple forms calling same form object Pin
Xaria20-Jul-08 15:44
Xaria20-Jul-08 15:44 
QuestionWindows Service (C++/CLI) and MFC Pin
xuesyuan17-Jul-08 10:51
xuesyuan17-Jul-08 10:51 
AnswerRe: Windows Service (C++/CLI) and MFC Pin
Mark Salsbery17-Jul-08 11:08
Mark Salsbery17-Jul-08 11:08 
GeneralRe: Windows Service (C++/CLI) and MFC Pin
xuesyuan17-Jul-08 12:01
xuesyuan17-Jul-08 12:01 
GeneralRe: Windows Service (C++/CLI) and MFC Pin
Mark Salsbery17-Jul-08 12:07
Mark Salsbery17-Jul-08 12:07 
GeneralRe: Windows Service (C++/CLI) and MFC Pin
xuesyuan17-Jul-08 12:50
xuesyuan17-Jul-08 12:50 
GeneralRe: Windows Service (C++/CLI) and MFC Pin
xuesyuan17-Jul-08 12:20
xuesyuan17-Jul-08 12:20 
When debugging I saw the program stops at winmain.cpp below and the line if (!pThread->InitInstance())

// This is a part of the Microsoft Foundation Classes C++ library.
// Copyright (C) Microsoft Corporation
// All rights reserved.
//
// This source code is only intended as a supplement to the
// Microsoft Foundation Classes Reference and related
// electronic documentation provided with the library.
// See these sources for detailed information regarding the
// Microsoft Foundation Classes product.

#include "stdafx.h"
#include "sal.h"


/////////////////////////////////////////////////////////////////////////////
// Standard WinMain implementation
// Can be replaced as long as 'AfxWinInit' is called first

int AFXAPI AfxWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
__in LPTSTR lpCmdLine, int nCmdShow)
{
ASSERT(hPrevInstance == NULL);

int nReturnCode = -1;
CWinThread* pThread = AfxGetThread();
CWinApp* pApp = AfxGetApp();

// AFX internal initialization
if (!AfxWinInit(hInstance, hPrevInstance, lpCmdLine, nCmdShow))
goto InitFailure;

// App global initializations (rare)
if (pApp != NULL && !pApp->InitApplication())
goto InitFailure;

// Perform specific initializations
if (!pThread->InitInstance())
{
if (pThread->m_pMainWnd != NULL)
{
TRACE(traceAppMsg, 0, "Warning: Destroying non-NULL m_pMainWnd\n");
pThread->m_pMainWnd->DestroyWindow();
}
nReturnCode = pThread->ExitInstance();
goto InitFailure;
}
nReturnCode = pThread->Run();

InitFailure:
#ifdef _DEBUG
// Check for missing AfxLockTempMap calls
if (AfxGetModuleThreadState()->m_nTempMapLock != 0)
{
TRACE(traceAppMsg, 0, "Warning: Temp map lock count non-zero (%ld).\n",
AfxGetModuleThreadState()->m_nTempMapLock);
}
AfxLockTempMaps();
AfxUnlockTempMaps(-1);
#endif

AfxWinTerm();
return nReturnCode;
}

/////////////////////////////////////////////////////////////////////////////
GeneralRe: Windows Service (C++/CLI) and MFC Pin
launchck22-Jul-08 18:24
launchck22-Jul-08 18:24 
AnswerRe: Windows Service (C++/CLI) and MFC Pin
led mike17-Jul-08 12:11
led mike17-Jul-08 12:11 
GeneralRe: Windows Service (C++/CLI) and MFC Pin
xuesyuan17-Jul-08 12:44
xuesyuan17-Jul-08 12:44 
GeneralRe: Windows Service (C++/CLI) and MFC Pin
led mike17-Jul-08 18:01
led mike17-Jul-08 18:01 
GeneralRe: Windows Service (C++/CLI) and MFC Pin
xuesyuan17-Jul-08 23:41
xuesyuan17-Jul-08 23:41 
GeneralRe: Windows Service (C++/CLI) and MFC Pin
Mark Salsbery18-Jul-08 5:46
Mark Salsbery18-Jul-08 5:46 
QuestionColumn width change in List View control Pin
Xaria16-Jul-08 21:00
Xaria16-Jul-08 21:00 
AnswerRe: Column width change in List View control Pin
Mark Salsbery17-Jul-08 8:19
Mark Salsbery17-Jul-08 8:19 
QuestionWrite XL File from C++.Net Pin
mohant$.net16-Jul-08 20:17
mohant$.net16-Jul-08 20:17 
AnswerRe: Write XL File from C++.Net [modified] Pin
leonigah23-Jul-08 2:07
leonigah23-Jul-08 2:07 
QuestionHow do you restrict textBox entry? Pin
BuckBrown16-Jul-08 13:43
BuckBrown16-Jul-08 13:43 
AnswerRe: How do you restrict textBox entry? Pin
led mike17-Jul-08 6:23
led mike17-Jul-08 6:23 
GeneralRe: How do you restrict textBox entry? Pin
BuckBrown17-Jul-08 7:16
BuckBrown17-Jul-08 7:16 
GeneralRe: How do you restrict textBox entry? Pin
led mike17-Jul-08 7:35
led mike17-Jul-08 7:35 
GeneralRe: How do you restrict textBox entry? Pin
BuckBrown17-Jul-08 8:59
BuckBrown17-Jul-08 8:59 
GeneralRe: How do you restrict textBox entry? Pin
led mike17-Jul-08 10:50
led mike17-Jul-08 10:50 
GeneralRe: How do you restrict textBox entry? Pin
killabyte20-Jul-08 19:19
killabyte20-Jul-08 19:19 

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.