Board index » Visual Studio » Location of resource.h

Location of resource.h

Visual Studio147
I have a project that used to be all in one folder. After

moving the source to separate folders (include, src and

wspace), MFC keeps generating the resource.h file in the

wspace folder (where the project workspace is).



This means whenever resource.h changes, I have to

manually move it to <include>before my code will pick up

the changes.



Is there a way to tell the IDE where resource.h should

live?



Also, how should I have organised my project? Separate

folders for each class did appeal but would have meant

including relative paths in each #include statement to

get the headers, as well as an awful lot of folders, each

holding just 2 files.



TIA,



--- Al.


-
 

Re:Location of resource.h

Nope, but you could make a pre-build step that copies the

resource.h over to your other folder.







Quote
-----Original Message-----

I have a project that used to be all in one folder.

After

moving the source to separate folders (include, src and

wspace), MFC keeps generating the resource.h file in the

wspace folder (where the project workspace is).



This means whenever resource.h changes, I have to

manually move it to <include>before my code will pick

up

the changes.



Is there a way to tell the IDE where resource.h should

live?



Also, how should I have organised my project? Separate

folders for each class did appeal but would have meant

including relative paths in each #include statement to

get the headers, as well as an awful lot of folders,

each

holding just 2 files.



TIA,



--- Al.



.



-