Beginning Question

Hi All, I've just got my first mfc assignment for my C++ class and I'm having issues already. Perhaps someone can point me in the right direction?

Using MS Visual C++ 6.0, I've opened a Win32 Application and opened a source file. I entered the following:
-----------------------

#include <afxwin.h>

class CExerciseApp : public CWinApp
{
public:
virtual BOOL InitInstance();
}

BOOL CExerciseApp::InitInstance()
{
return TRUE;
}

CExerciseApp theApp;

------------------------------------

This produced the error message:

"fatal error LNK1104: cannot open the fole "nafxcwd.lib"
Error executing link.exe"

Can someone tell me how to fix this problem? I'll be happy to provide any needed information.
sorry, I don't know anything about mfc I've only tried the win32 api. However based on the error message it seems that you're having a linking error, the compiler is looking for the nafxcwd.lib and you probably haven't included it in your project or something.
If you are using the IDE you want to open a new project, empty win 32 console application, unless you are going to open a window and use the Win32 API.
Topic archived. No new replies allowed.