生成时选择多文档界面,然后在BOOL CYourApp::InitInstance()过程中去掉
// Parse command line for standard shell commands, DDE, file open
CCommandLineInfo cmdInfo;
ParseCommandLine(cmdInfo);
// Parse command line for standard shell commands, DDE, file open
CCommandLineInfo cmdInfo;
ParseCommandLine(cmdInfo);
CDateBase db;
db.open(....),我记不好,你看看MSDN把。