| Subject: custom code wizard |
| Group: microsoft.public.vstudio.general |
| Date: 8/10/2008 12:47:52 AM |
| From: "Helge Kruse" [Email Address Protection] |
Hi, I need to add a C++ class to my VS2005 C++ project. I am using the Generic C++ wizard as a template. My custom class is inherited from a base class that is not in the current project. So I need to add an #include statment to an external header file. I could not find any function to do this job. What should I do to get this #include of the base class? /Helge -- Time is an ocean but it ends at the shore. |
| Back |
| Subject: Re: custom code wizard |
| Group: microsoft.public.vstudio.general |
| Date: 8/10/2008 4:45:30 AM |
| From: "Helge Kruse" [Email Address Protection] |
"Helge Kruse" <Helge.Kruse-nospam@gmx.net> wrote in message news:g7m6fk$8np$02$1@news.t-online.com... > Hi, > > I need to add a C++ class to my VS2005 C++ project. I am using the > Generic C++ wizard as a template. My custom class is inherited from a > base class that is not in the current project. So I need to add an > #include statment to an external header file. I could not find any > function to do this job. What should I do to get this #include of the > base class? Additionally I see that the Generic C++ class wizard does not add a #include "StdAfx.h to new .cpp files created for the new class even if precompiled header files are in use. This would somehow help to solve the problem above. Do you know a workaround? /Helge -- Time is an ocean but it ends at the shore. |
| Back |
| Subject: Re: custom code wizard |
| Group: microsoft.public.vstudio.general |
| Date: 8/10/2008 6:35:17 AM |
| From: "Helge Kruse" [Email Address Protection] |
"Helge Kruse" <Helge.Kruse-nospam@gmx.net> wrote in message news:g7m6fk$8np$02$1@news.t-online.com... > Hi, > > I need to add a C++ class to my VS2005 C++ project. I am using the > Generic C++ wizard as a template. My custom class is inherited from a > base class that is not in the current project. So I need to add an > #include statment to an external header file. I could not find any > function to do this job. What should I do to get this #include of the > base class? I found it by myself. The class "code model" provides a method "AddInclude" that does the job. Playing around with the arguments gives the exected results. /Helge -- Time is an ocean but it ends at the shore. |
| Back |