标题:VC++错误信息
只看楼主
lnb19850110
Rank: 1
等 级:新手上路
帖 子:1
专家分:0
注 册:2007-4-24
 问题点数:0 回复次数:0 
VC++错误信息

大家好,我现在真的好绝望!!我们在做一个毕业设计,用VC++,遇到一个问题,花了一周的时间,好无结果,真的好绝望,希望高手能帮帮我们啊。真的很感激
错误信息是:For information on how your program can cause an assertion
failure, see the Visual C++ documentation on asserts.

我把代码传上来了。,下面是调试的时候有问题的代码,好想是断言的问题,高手们,前辈们,帮帮忙啊
#include "stdafx.h"
#include "occimpl.h"

#ifdef AFX_CORE3_SEG
#pragma code_seg(AFX_CORE3_SEG)
#endif

#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CDataExchange member functions (contructor is in wincore.cpp for swap tuning)

HWND CDataExchange::PrepareEditCtrl(int nIDC)
{
HWND hWndCtrl = PrepareCtrl(nIDC);
ASSERT(hWndCtrl != NULL);
m_bEditLastControl = TRUE;
return hWndCtrl;
}

HWND CDataExchange::PrepareCtrl(int nIDC)
ASSERT(nIDC != 0);
ASSERT(nIDC != -1); // not allowed
HWND hWndCtrl;
m_pDlgWnd->GetDlgItem(nIDC, &hWndCtrl);
if (hWndCtrl == NULL)
{
TRACE1("Error: no data exchange control with ID 0x%04X.\n", nIDC);//问题大概就在这个地方!!!!!!!!!!!!!
ASSERT(FALSE);
AfxThrowNotSupportedException();
}
m_hWndLastControl = hWndCtrl;
m_bEditLastControl = FALSE; // not an edit item by default
ASSERT(hWndCtrl != NULL); // never return NULL handle
return hWndCtrl;
}

搜索更多相关主题的帖子: failure include 信息 
2007-04-24 22:36



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-134666-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.398815 second(s), 7 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved