这是什么错误 你在nafxcwd 中定义了名为__endthreadex外部变量,在连接时却找不到这个变量. 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 //: aa.cpp#include <afxwin.h>#include "aa.h"CMyApp myApp;/////////////////////////////////////////////////////// CMyApp member functionsBOOL CMyApp::InitInstance(){ m_pMainWnd = new CMainWindow; m_pMainWnd->ShowWindow(m_nCmdShow); m_pMainWnd->UpdateWindow(); return TRUE;}////////////////////////////////////////////////////// CMainWindow message map and member functionsBEGIN_MESSAGE_MAP(CMainWindow, CFrameWnd) ON_WM_PAINT()END_MESSAGE_MAP()CMainWindow::CMainWindow(){ Create(NULL, _T("The Hello Application"));}void CMainWindow::OnPaint(){ CPaintDC dc(this); CRect rect; GetClientRect(&rect); dc.DrawText(_T("Hello,MFC"), -1, &rect, DT_SINGLELINE|DT_CENTER|DT_VCENTER);}//: aa.hclass CMyApp : public CWinApp {public: virtual BOOL InitInstance();};class CMainWindow : public CFrameWnd{public: CMainWindow();protected: afx_msg void OnPaint(); DECLARE_MESSAGE_MAP()};我是在《MFC Windows程序设计》照打的, 怎么我用光盘的可以,自己打上去不行的 请指明! Project 项的Setting 内的Linking 设置有问题 project->setting->c++->category:code generation->use runtime library 选择debug multithreaded Project->Settings->C/C++->Code Generation->Use RunTime Library选多线程支持 如何把BYTE型的串,存储到string中,再拿出来 用GetDlgItem(IDC_NUM_CLEAR)->EnableWindow(FALSE)后线程不能用了??? VC CTabCtrl头加上一个小的关闭按钮 设置参数后方法无效,请朋友帮忙,在线等! 666进来拿分 分少了,你会解答吗? 怎么获取多页文档中当前显示页的内容? unix下用什么语言编程(除了c语言之外)? pBitmapData和pBitmapInfo怎么声明和使用?是CDIB类里面的东西吗? 哪位大侠手头有VPacket.vxd用法的资料? 自己绘控件 如何设置CBrush的顔色
#include <afxwin.h>
#include "aa.h"CMyApp myApp;/////////////////////////////////////////////////////
// CMyApp member functionsBOOL CMyApp::InitInstance()
{
m_pMainWnd = new CMainWindow;
m_pMainWnd->ShowWindow(m_nCmdShow);
m_pMainWnd->UpdateWindow();
return TRUE;
}////////////////////////////////////////////////////
// CMainWindow message map and member functionsBEGIN_MESSAGE_MAP(CMainWindow, CFrameWnd)
ON_WM_PAINT()
END_MESSAGE_MAP()CMainWindow::CMainWindow()
{
Create(NULL, _T("The Hello Application"));
}void CMainWindow::OnPaint()
{
CPaintDC dc(this); CRect rect;
GetClientRect(&rect); dc.DrawText(_T("Hello,MFC"), -1, &rect,
DT_SINGLELINE|DT_CENTER|DT_VCENTER);
}//: aa.h
class CMyApp : public CWinApp {
public:
virtual BOOL InitInstance();
};class CMainWindow : public CFrameWnd
{
public:
CMainWindow();protected:
afx_msg void OnPaint();
DECLARE_MESSAGE_MAP()
};我是在《MFC Windows程序设计》照打的,
怎么我用光盘的可以,自己打上去不行的
请指明!
选择debug multithreaded
选多线程支持