有个同学用VC++做了上机作业给老师检查时,被问到:
你不是声明了一个CMainFrame类吗?这个类定义的对象在哪呢?
能不能单步执行来看?
你不是声明了一个CMainFrame类吗?这个类定义的对象在哪呢?
能不能单步执行来看?
解决方案 »
- 求助:绘制加速度曲线
- 采用TCP协议的SEND(),如果发送完都有sleep就不会出现粘包现象
- 请问怎么我的全局键盘钩子dll在系统按下ctrl+alt+del键后就不起作用了??
- 在控件上画图时产生了一个运行时的指针错误,请高手指教。
- 关于MSDN和VC的help
- 有关const
- 怎样实现一个字体串在屏幕中居中显示?
- 关于include引用头文件问题
- 关于重叠IO的WriteFile调用返回 87错误的一个原因
- 用VB建立好一个com组件后,怎么注册它呢?有没没方便的方法?
- 使用虚拟列表的问题,请看看!谢谢!
- 菜鸟初学vc,在窗体上放了两个按钮,我想点击第一个按钮,使第二个按钮的文字变成‘您好’,并且字体为宋体20号字,谁能帮忙啊??
BOOL CDwsgglApp::InitInstance()
{
AfxEnableControlContainer(); // 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.#ifdef _AFXDLL
Enable3dControls(); // Call this when using MFC in a shared DLL
#else
Enable3dControlsStatic(); // Call this when linking to MFC statically
#endif // 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"));
// To create the main window, this code creates a new frame window
// object and then sets it as the application's main window object.//以下就是定义了一个CMainFrame对象的指针,其指向一个CMainFrame对象。 CMainFrame* pFrame = new CMainFrame;
m_pMainWnd = pFrame; // create and load the frame with its resources pFrame->LoadFrame(IDR_MAINFRAME,
WS_OVERLAPPEDWINDOW | FWS_ADDTOTITLE, NULL,
NULL);
HICON icon = LoadIcon(IDR_MAINFRAME); //调用图标
pFrame->SetIcon(icon,true); //显示大图标
pFrame->SetIcon(icon,false); //显示小图标 // The one and only window has been initialized, so show and update it.
pFrame->ShowWindow(SW_SHOWMAXIMIZED);
// pFrame->ShowWindow(SW_SHOW);
pFrame->UpdateWindow(); return TRUE;
}/////////////////////////////////////////////////////////////////////////////
// CDwsgglApp message handlers
Pipi0714(皮皮0714):反对可以,骂人不好