BOOL CFE_DLGApp::InitInstance() { // Standard initialization // If you are not using these features and wish to reduce the size // of your final executable, you should remove from the following // the specific initialization routines you do not need. AfxOleInit();//加上之后还是不行,这里加对不对啊? CFE_DLGDlg dlg; m_pMainWnd = &dlg; int nResponse = dlg.DoModal(); if (nResponse == IDOK) { // TODO: Place code here to handle when the dialog is // dismissed with OK } else if (nResponse == IDCANCEL) { // TODO: Place code here to handle when the dialog is // dismissed with Cancel } // Since the dialog has been closed, return FALSE so that we exit the // application, rather than start the application's message pump. return FALSE; }加上之后还是不行,加的对不对啊?我学VC刚5天,希望大侠们多多指教啊,具体的最好。
AfxOleInit()
没作用,怀疑根本没执行到OnInitDialog()。代码14M,谁用QQ帮我看看也行啊?
我的QQ:312471977
{
// Standard initialization
// If you are not using these features and wish to reduce the size
// of your final executable, you should remove from the following
// the specific initialization routines you do not need.
AfxOleInit();//加上之后还是不行,这里加对不对啊?
CFE_DLGDlg dlg;
m_pMainWnd = &dlg;
int nResponse = dlg.DoModal();
if (nResponse == IDOK)
{
// TODO: Place code here to handle when the dialog is
// dismissed with OK
}
else if (nResponse == IDCANCEL)
{
// TODO: Place code here to handle when the dialog is
// dismissed with Cancel
} // Since the dialog has been closed, return FALSE so that we exit the
// application, rather than start the application's message pump.
return FALSE;
}加上之后还是不行,加的对不对啊?我学VC刚5天,希望大侠们多多指教啊,具体的最好。
AfxEnableControlContainer();这样就可以了;谢谢楼上各位的帮忙。