Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to disable #include "MyApp"

Status
Not open for further replies.

PerFnurt

Programmer
Feb 25, 2003
972
SE
Hiya,

when I create a new class (Class View->New class...) the .cpp gets a
#include "TheMainApplication.h"

I find this amazingly annoying. Is there some way to disable that?

Talking about VC++ 6


/Per

if (typos) cout << &quot;My fingers are faster than my brain. Sorry for the typos.&quot;;
 
There are many *.awx - files in bin/IDE forder - there are all templates for projects. You can edit these files to remove all things You do not like in generated projects.
 
> You can edit these files
Hmm, aren't those file actually DLLs? Ie I would need their source code to modify and rebuild them? Or are you suggestion I should write an entirely new AppWizard?

Besides, even though them AppWizards are nice they can only be used when generating new projects, right?

I'm talking about generating new classes into existing project. Is that behavior defined in the AppWizard?

I've been pondering on the idea to create something in the component gallery to generate classes/files according to my taste, alas don't know how to do it. thread116-573108



/Per

if (typos) cout << &quot;My fingers are faster than my brain. Sorry for the typos.&quot;;
 
Anyway I found it.

Remove the
NewFileInclude2=#include &quot;SomeFile.h&quot;

from the .clw file. Will be re-generated if the ClassWizard should create the .clw again. So now the question is - why does the ClassWizard think I want it? Hmmm....


/Per

if (typos) cout << &quot;My fingers are faster than my brain. Sorry for the typos.&quot;;
 
Ok...I'll answer that too: Because the project has a .rc file. [bugeyed]

Here's the logic(or what to call it):
* ClassWizard is enabled if the project contains a .rc file.
* If ClassWizard is enabled it will generate the mentioned include, which is actually &quot;theRCfileName.h&quot;

Don't know if I should laugh or cry...

/Per

if (typos) cout << &quot;My fingers are faster than my brain. Sorry for the typos.&quot;;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top