我在网上找到一段代码,但不是很明白:他的意思是直接在主界面的程序中添加这个就行了吗?那是不是将登陆界面的文件拷到主界面的文件夹就好了呢? BOOL CtestApp::InitInstance() { //TODO: call AfxInitRichEdit2() to initialize richedit2 library. // InitCommonControlsEx() is required on Windows XP if an application // manifest specifies use of ComCtl32.dll version 6 or later to enable // visual styles. Otherwise, any window creation will fail. CPassWordDlg dlg; if(dlg.DoModal() != IDOK) return;
BOOL CtestApp::InitInstance()
{
//TODO: call AfxInitRichEdit2() to initialize richedit2 library.
// InitCommonControlsEx() is required on Windows XP if an application
// manifest specifies use of ComCtl32.dll version 6 or later to enable
// visual styles. Otherwise, any window creation will fail.
CPassWordDlg dlg;
if(dlg.DoModal() != IDOK)
return;
我之前在写那个主界面的时候用到了个easysize(兄台应该知道),当时只是把easysize的的头文件easysize.h考到我所写的界面的文件内,然后加上#include easysize.h基本上就可以了。
在现在这个问题中为什么需要把所有有的文件都拷过来呢??若其他网友知道也请不吝赐教!!!