Pardon me, I had posted this in the Homework thread. Kermi, please ignore that posting. Hope this posting is now in NEW thread.
Please let me know if this posting is not appropriate here. In this case, please give me the appropriate place for this posting.
I copied and pasted a C++ example that is supposed to work. See Below, but I got a compiled error: code 1083.
==============================================
==============================================
#include "stdafx.h"
#include "resource.h"
#include "GetWindow.h"
#include "GetWindowDlg.h"
#ifdef _DEBUG
#undef THIS_FILE
static char BASED_CODE THIS_FILE[] = __FILE__;
#endif
BEGIN_MESSAGE_MAP(CGetWindowApp, CWinApp)
ON_COMMAND(ID_HELP, CWinApp::OnHelp)
END_MESSAGE_MAP()
CGetWindowApp::CGetWindowApp()
{
}
BOOL CGetWindowApp::InitInstance()
{
CGetWindowDlg dlg;
m_pMainWnd = &dlg;
int nResponse = dlg.DoModal();
return FALSE;
}
CGetWindowApp theApp;
==================================================
==========================================
The output result below displays compiled error. Can someone correct it? I am puzzled at this error, because I did not add any file called GetWindow.pch.
--------------------Configuration: GetWindow - Win32 Debug--------------------
Compiling...
GetWindow.cpp
c:\unzipped\code_upload13544182001\getwindow.cpp(1 ) : fatal error C1083: Cannot open precompiled header file: 'Debug/GetWindow.pch': No such file or directory
Error executing cl.exe.
GetWindow.obj - 1 error(s), 0 warning(s)