#ifdef _AFXDLL
Enable3dControls(); // Call this when using MFC in a shared DLL
#else
Enable3dControlsStatic(); // Call this when linking to MFC statically
#endif CBtolPlayerDlg 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;
代码如上。dlg.DoModal()没有弹出对话框,直接到了return FALSE了。
对话框中使用了一个AX日期控件。打开对话框时会提示 计算机中没有注册该控件,会不会是这个原因?
Enable3dControls(); // Call this when using MFC in a shared DLL
#else
Enable3dControlsStatic(); // Call this when linking to MFC statically
#endif CBtolPlayerDlg 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;
代码如上。dlg.DoModal()没有弹出对话框,直接到了return FALSE了。
对话框中使用了一个AX日期控件。打开对话框时会提示 计算机中没有注册该控件,会不会是这个原因?
解决方案 »
- 有些函数或参数在msdn里找不到怎么办?
- CRichEdit控件中调用OleCreateFromFile所占用的内存如何释放
- 急!!!!~~高手进来拿分 求助: 已知两种颜色求第三种颜色, 在线等待!~~
- 字体的高度点数是固定的吗?
- 如何从已分割的窗口(其中之一)中获取输入的数据
- 在同一个机器上接了两个显示器,然后同时运行两个程序,两个程序运行的输出结果分别显示在不同的显示器上?是否要写程序实现?
- 那里有<VISUAL C++从入门到精通>这本书的电子版下载啊??
- LSP的应用场景
- 我太菜了,请大家帮忙
- 为什么我在single document工程中显示不出我要的文本文件呢?
- 急!!大侠求您了!(appface 皮肤失效问题)
- WNetOpenEnum列举共享资源,是否可以带密码跟用户名访问?
使用regsvr32组册一下
是不是加了 RichEdit控件???如果加了这个控件 要加 AfxInitRichEdit() 函数
我在工程--》增加到工程--》components and controls -->Registered ActiveX Controls 找不到,不清楚是没有还是我不认识那个控件。