MFC找出隐藏的WinMain
无意中发现了!@小甲鱼 @迷雾少年 @康小泡 @拈花小仙 @~风介~ @百日维新 @小人(排名不分先后)
源代码:
// 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;
} 这个?int AFXAPI AfxWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
_In_ LPTSTR lpCmdLine, int nCmdShow) ~风介~ 发表于 2016-9-21 20:05
这个?
嗯嗯{:10_254:} 我好像发现很久了 {:5_91:} {:7_121:}支持,不过这个不能找哦` 期待新短例` 小人 发表于 2016-9-21 20:31
我好像发现很久了
哇,膜拜大神啊!{:10_284:} 拈花小仙 发表于 2016-9-21 20:35
支持,不过这个不能找哦` 期待新短例`
最近没空啦,作业好多{:10_258:},找个星期六星期日再搞吧。 无符号整形 发表于 2016-9-21 20:42
最近没空啦,作业好多,找个星期六星期日再搞吧。
时间是挤出来的,有压力才有动力,给自己定个目标,每周至少更新一到两个短例` 要保证质量哈` 拈花小仙 发表于 2016-9-21 20:59
时间是挤出来的,有压力才有动力,给自己定个目标,每周至少更新一到两个短例` 要保证质量哈`
嗯嗯{:10_264:}看看作业有没有少点吧! 无符号整形 发表于 2016-9-21 21:03
嗯嗯看看作业有没有少点吧!
{:7_139:}我相信你,你一定行的`
页:
[1]