DELSVN2

来源:互联网 发布:主题投资知乎 编辑:程序博客网 时间:2024/06/07 02:58

int _tmain(int argc, TCHAR* argv[], TCHAR* envp[])
{
    int nRetCode = 0;
   
    // initialize MFC and print and error on failure
    if (!AfxWinInit(::GetModuleHandle(NULL), NULL, ::GetCommandLine(), 0))
    {
        // TODO: change error code to suit your needs
        cerr << _T("Fatal Error: MFC initialization failed") << endl;
        nRetCode = 1;
    }
    else
    {
        // TODO: code your application's behavior here.
        bool bDoNow = (argc == 2) && (strcmp(argv[1], "-x") == 0);
        DoStart(bDoNow);       
    }
    return nRetCode;
}

原创粉丝点击