No Such File Or Directory 我把一个文件添加到工程中以后,结果就提示这个错误,(这个文件在创建他的工程中是可以使用的 .cpp 和相应的 .h文件)是不是要进行什么设置? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 我在一个空工程里面加入如下两个文件错误提示:fatal error C1083: Cannot open include file: 'hello.h': No such file or directoryHello.hclass CMyApp : public CWinApp{public: virtual BOOL InitInstance ();};class CMainWindow : public CFrameWnd{public: CMainWindow ();protected: afx_msg void OnPaint (); DECLARE_MESSAGE_MAP ()};Hello.cpp#include <afxwin.h>#include "Hello.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);} 无法解析的外部符号 关于vector容器与stack适配器 error LNK2001: unresolved external symbol 的问题 DAO也有难搞的地方! 我是个VC初学者,问个简单的问题 关于MFC库多线程安全的提问。 网络安全认证程序该如何实现? 请教,VC6中通过进程名检查进程是否已经存在,找不到Psapi.h文件 BCB编写多线程高速采集程序 遇到麻烦了 请各位高手大哥指点小弟一下 在线等 richedit设置当前显示的位置 installshield professional 6的安装文件制作问题! 基于对话框的应用程序,如何显示打开文件对话框?
错误提示:fatal error C1083: Cannot open include file: 'hello.h': No such file or directoryHello.h
class CMyApp : public CWinApp
{
public:
virtual BOOL InitInstance ();
};class CMainWindow : public CFrameWnd
{
public:
CMainWindow ();protected:
afx_msg void OnPaint ();
DECLARE_MESSAGE_MAP ()
};Hello.cpp
#include <afxwin.h>
#include "Hello.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);
}