首页上一页 1 下一页尾页 1 条记录 1/1页
Visual C++ 项目开发全程实录 超市进销存管理系统 登陆模块问题-3
发表在C语言图书答疑
2012-02-22
是否精华
是
否
版块置顶:
是
否
在BOOL CLogin::PreTranslateMessage(MSG* pMsg) 这个函数里,用到的m_UserName变量,我在Login.cpp的文件上声明了这个变量
#include "stdafx.h"
#include "SuperMarket.h"
#include "Login.h"
#include "ADOConn.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
extern CString m_UserName;
但我找不到定义这个变量的地方,是在程序里的哪个地方定义的?
运行时提示如下错误:unresolved external symbol "class CString m_UserName"
我参照的是书本自带光盘里的程序(自带的程序编译和连接、运行都没有问题)。
#include "stdafx.h"
#include "SuperMarket.h"
#include "Login.h"
#include "ADOConn.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
extern CString m_UserName;
但我找不到定义这个变量的地方,是在程序里的哪个地方定义的?
运行时提示如下错误:unresolved external symbol "class CString m_UserName"
我参照的是书本自带光盘里的程序(自带的程序编译和连接、运行都没有问题)。