不管选哪个,结果是一样的
解决方案 »
- unresolved external symbol _DioGetCurrentDOByte
- 求问SDI视图界面变化的效果制作
- 在线..., 如何让CStatic控件不显示图, 只显示边框?
- 客户端收到什么数据,或在什么情况下会发RST帧?
- 为什么我用SQLConfigDataSource(..)总是不能创建数据源?
- 谢谢大家给点“桌面图标透明”的思路(当然有源码更好)。
- ado连接问题
- 写windows的Service用ATL工程的Service选项和NT Service工程有什么区别?
- visualstudio.net beta1 的安装
- 请各位高手开尊口
- 这个错误怎么一回事
- 关于头文件的讨论
_tWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
LPTSTR lpCmdLine, int nCmdShow)
{
// call shared/exported WinMain
return AfxWinMain(hInstance, hPrevInstance, lpCmdLine, nCmdShow);
}上面这段代码也不知道是哪来的
pDocTemplate = new CSingleDocTemplate(
IDR_MAINFRAME,
RUNTIME_CLASS(CEx01bDoc),
RUNTIME_CLASS(CMainFrame), // main SDI frame window
RUNTIME_CLASS(CEx01bView));
AddDocTemplate(pDocTemplate);这样的东西只有一个才对。
视图是在下面的代码里加的:
BOOL CMainFrame::OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext)
{
// TODO: Add your specialized code here and/or call the base class
m_wnd.CreateStatic(this,2,1);
m_wnd.CreateView(0,0,RUNTIME_CLASS(CEx01bView),CSize(250,250),pContext);
m_wnd.CreateView(1,0,RUNTIME_CLASS(CMyView1),CSize(250,250),pContext); //return m_wnd.Create(this,2,2,CSize(20,20),pContext); return true;
//return CFrameWnd::OnCreateClient(lpcs, pContext);
}
pDocTemplate = new CSingleDocTemplate(
IDR_MAINFRAME,
RUNTIME_CLASS(CFormDoc),
RUNTIME_CLASS(CMainFrame), // main SDI frame window
RUNTIME_CLASS(CMyFormView));
AddDocTemplate(pDocTemplate); // Parse command line for standard shell commands, DDE, file open
CCommandLineInfo cmdInfo;
ParseCommandLine(cmdInfo); // Dispatch commands specified on the command line
if (!ProcessShellCommand(cmdInfo))
return FALSE; // The one and only window has been initialized, so show and update it.
m_pMainWnd->ShowWindow(SW_SHOW);
m_pMainWnd->UpdateWindow(); return TRUE;没有两个模板吧