App类的InitInstance函数中有这么一句(SDI/MDI中有,对话框工程没有这个): // Change the registry key under which our settings are stored. // TODO: You should modify this string to be something appropriate // such as the name of your company or organization. SetRegistryKey(_T("Local AppWizard-Generated Applications")); LoadStdProfileSettings(); // Load standard INI file options (including MRU)
膜拜LS 记得好像以前学MFC内部架构 默认是不写入注册表的吧? 写注册表需要自己写API
好吧 我错了 SetRegistryKey(_T("应用程序向导生成的本地应用程序")); LoadStdProfileSettings(4); // 加载标准 INI
....SetRegistryKey(_T("应用程序向导生成的本地应用程序")); LoadStdProfileSettings(4); // 加载标准 INI 这两句一删就报错 试过了...
// Change the registry key under which our settings are stored.
// TODO: You should modify this string to be something appropriate
// such as the name of your company or organization.
SetRegistryKey(_T("Local AppWizard-Generated Applications")); LoadStdProfileSettings(); // Load standard INI file options (including MRU)
LoadStdProfileSettings(4); // 加载标准 INI
LoadStdProfileSettings(4); // 加载标准 INI
这两句一删就报错 试过了...
没报错
2008MFC单文档