有个c++程序运行错误 帮忙改下

来源:百度知道 编辑:UC知道 时间:2024/07/02 19:27:15
代码如下
// MyRecord.cpp : Defines the class behaviors for the application.
//

#include "stdafx.h"
#include "MyRecord.h"
#include "MyRecordDlg.h"

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

/////////////////////////////////////////////////////////////////////////////
// CMyRecordApp

BEGIN_MESSAGE_MAP(CMyRecordApp, CWinApp)
//{{AFX_MSG_MAP(CMyRecordApp)
// NOTE - the ClassWizard will add and remove mapping macros here.
// DO NOT EDIT what you see in these blocks of generated code!
//}}AFX_MSG
ON_COMMAND(ID_HELP, CWinApp::OnHelp)
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CMyRecordApp construction

CMyRecordApp::CMyRecordApp()
{
// TODO: add construction code here,
// Place all significa

也不说出现什么错误,看代码的话就是打开一个数据库,然后重载了两个消息,没什么错误的地方,如果有的话应该是打开数据库错误。

因为你的代码不全,所以你还需要把调试的错误信息一起贴出来,这样方便大家帮你找问题。