missing

Hello,

I am doing a lesson in a C++ Guide Book to create a simple window (code below) and the Visual C++ Express 2005 IDE reported this error:

Cannot open include file: 'afxwin.h': No such file or directory

I set - Use MFC in a shared DLL - as the book directed.

[code]// Ex13_01.cpp
// An elementary MFC program
#include // For the class library

// Application class definition
class COurApp:public CWinApp
{
public;
virtual BOOL InitInstance();
};

// Window class definition
class COurWnd:public CFrameWnd
{
public:
// Class constructor
COurWnd()
{
Create(0, "Our dumb MFC Application");
}
};

// Function to create an instance of the main window
BOOL COurApp::InitInstance(void)
{
// Construct a window object in the free store
m_pMainWnd = new COurWnd;
m_pMainWnd->ShowWindow(m_nCmdShow); // ...and display it
return TRUE;
}

// Application object definition at global scope
COurApp AnApplication; // Define an application object
[/code]

Comments

  • : I set - Use MFC in a shared DLL - as the book directed.

    Hmm...

    The last time I checked, MSVC++ Express Editions do not support MFC nor ATL. You will need to pay for the professional editions for that.
    [hr][size=1][leftbr].:EvolutionEngine[rightbr][leftbr].:MicroOS Operating System[rightbr][leftbr][link=http://www.brokenthorn.com]Website :: OS Development Series[rightbr][/link][/size]
  • : : I set - Use MFC in a shared DLL - as the book directed.
    :
    : Hmm...
    :
    : The last time I checked, MSVC++ Express Editions do not support MFC
    : nor ATL. You will need to pay for the professional editions for that.
    : [hr][size=1][leftbr].:EvolutionEngine[rightbr][leftbr].:MicroOS
    : Operating
    : System[rightbr][leftbr][link=http://www.brokenthorn.com]Website ::
    : OS Development Series[rightbr][/link][/size]
    :

    Are you saying that that option shouldn't appear in the IDE?
    Or that I chose an option that isn't supported in the free version?

  • : Are you saying that that option shouldn't appear in the IDE?
    : Or that I chose an option that isn't supported in the free version?

    I personally never seen the option anywhere. I believe it should be there; just will give a message of sorts that it is not available.

    Please keep in mind that I never used MFC before. I am sure other members can correct me if im wrong.
    [hr][size=1][leftbr].:EvolutionEngine[rightbr][leftbr].:MicroOS Operating System[rightbr][leftbr][link=http://www.brokenthorn.com]Website :: OS Development Series[rightbr][/link][/size]
  • : Please keep in mind that I never used MFC before. I am sure other
    : members can correct me if im wrong.
    : [hr][size=1][leftbr].:EvolutionEngine[rightbr][leftbr].:MicroOS
    : Operating
    : System[rightbr][leftbr][link=http://www.brokenthorn.com]Website ::
    : OS Development Series[rightbr][/link][/size]
    :
    You are right
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories