int CMainFrame::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
if (CFrameWnd::OnCreate(lpCreateStruct) == -1)//这里出的错
return -1;
错误现象是:Unhandled exception in mytext.exe:0xC0000005 access violation各位,这是回是什么情况造成的? 该怎么办啊???
{
if (CFrameWnd::OnCreate(lpCreateStruct) == -1)//这里出的错
return -1;
错误现象是:Unhandled exception in mytext.exe:0xC0000005 access violation各位,这是回是什么情况造成的? 该怎么办啊???
解决方案 »
- ADO相关的二个问题
- api getopenfilename调用的异常,求高手
- 如何在同一个对话框中,使控件显示不同颜色
- 请问如何把应用程序做成服务类型的?即在系统启动时,没有按ctrl+alt+del之前就运行了!
- “user breakpoint called from code at”错误是怎么回事?
- 怎么在水平滚动条的左边加一个按钮?就是让滚动条“让出”一点地方给一个button?默认全占满了啊!
- 对话框程序中使用CListCtrl刷新的问题!
- 我进入IT业1年,我所在的公司只有一个美工和我两个技术人员,虽然什么项目都要我做,但是感觉是在自学,目光短浅,请问我是继续在这个公
- TextOut能分行显示吗?急
- 串口问题
- 请问如何获得指定进程(句柄或者ID)的图标?
- 窗口之间发送消息的问题!
感觉不是这里的错误,而是其它的地方内存操作有误
{
lResult = AfxGetThread()->ProcessWndProcException(e, &pThreadState->m_lastSentMsg);
TRACE1("Warning: Uncaught exception in WindowProc (returning %ld).\n",
lResult);
DELETE_EXCEPTION(e);
}
{
AfxEnableControlContainer();
#ifdef _AFXDLL
Enable3dControls(); // Call this when using MFC in a shared DLL
#else
Enable3dControlsStatic(); // Call this when linking to MFC statically
#endif SetRegistryKey(_T("Local AppWizard-Generated Applications")); LoadStdProfileSettings(); // Load standard INI file options (including MRU)
CSingleDocTemplate* pDocTemplate;
pDocTemplate = new CSingleDocTemplate(
IDR_MAINFRAME,
RUNTIME_CLASS(CMytextDoc),
RUNTIME_CLASS(CMainFrame), // main SDI frame window
NULL);
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_SHOWMAXIMIZED);
m_pMainWnd->UpdateWindow(); return TRUE;
}int CMainFrame::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
if (CFrameWnd::OnCreate(lpCreateStruct) == -1)//这里出的错误
return -1;