Top.Mail.Ru
The C++ Community's Journal -- Day
? ?
The C++ Community's Journal -- Day [entries|friends|calendar]
The C++ Community

[ userinfo | livejournal userinfo ]
[ calendar | livejournal calendar ]

Win32 Class Struggle [20 Aug 2006|06:42pm]
To make a long story short I've got a number of very basic .cpp classes where I've got the .h:

class: myclass
{
public:
myclass();
};

and then the .cpp:

#include
[Error: Irreparable invalid markup ('<windows.h>') in entry. Owner must fix manually. Raw contents below.]

To make a long story short I've got a number of very basic .cpp classes where I've got the .h:

class: myclass
{
public:
myclass();
};

and then the .cpp:

#include <windows.h>
#include "myclass.h"

myclass::myclass()
(;)

I know that this works because I have no problem running these classes in a console applicaiton.
However, when I make a new project that is a win32 windows app, I can get the window up and running and process messages etc. The only problem is that I'd like to use my classes and I'm trying to just put

#include "myclass.h"

in the #include list but win32 is not having any of it, I am getting "myclass.h" does not exist. I am using .net. Any advice would be appreciated.
9 comments|post comment

navigation
[ viewing | August 20th, 2006 ]
[ go | previous day|next day ]
Image