#include "ClassWindowOne\ClassWindowOne.h"
this is in main but compiler says it cant find ClassWindowOne.h
WinMain cpp is on D:\ then i made a folder on there called ClassWindowOne
then added the files to the workspace , but i cant seem to compile..
Code:
//class 1 inside ClassWindowOne folder
class Window1
{
public:
void CreateWin();
};
Code:
#include "ClassWindowOne.h"
#include <windows.h>
void Window1::CreateWin()
{
MessageBox(NULL,"test","test",0);
}
Code:
//main
#include "ClassWindowOne\ClassWindowOne.h"
int main()
{
Window1 W1;
W1.CreateWin();
return 0;
}