APSTUDIO_INVOKED Resources
Chet Murphy -- cmurphy@modelworks.com
Tuesday, February 27, 1996
Environement : VC++ 4.0 / Win NT
I am creating an application that is a subset of another application. I
did this by creating a new top level project within the main
application's workspace and then added the files appropriate to the
subset. Because the subset application has a different name and menu
structure I also created resource file for the subset application by
copying and then editing the appropriate resources from the main
application resource file to the subset application resource file.
All this is working except that I have to manually add the following
#ifndef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 3 resource.
//
#include "afxres.rc"
#include "afxprint.rc"
#include "afxolesv.rc"
/////////////////////////////////////////////////////////////////////////////
#endif // not APSTUDIO_INVOKED
at the end of my subset application resource file every time I change
its resource file using the resouce editor.
BTW: To manage the resources for the two application I use defines
together with conditional includes so that each application is including
the correct "resource.h" file. These same defines are also used to
create the subset application from the main application. My CWinApp
class and other classes use the same source for both applications.
Any suggestions on what changes I need to make to let the resource
editor know that this resource file should have these lines included
automatically?
--Chet Murphy
ModelWorks Software
cmurphy@modelworks.com
http://www.modelworks.com/express
Kit Kauffmann -- kitk@mudshark.sunquest.com
Friday, March 01, 1996
[Mini-digest: 2 responses]
>Environement : VC++ 4.0 / Win NT
>
>I am creating an application that is a subset of another application. I
>did this by creating a new top level project within the main
>application's workspace and then added the files appropriate to the
>subset. Because the subset application has a different name and menu
>structure I also created resource file for the subset application by
>copying and then editing the appropriate resources from the main
>application resource file to the subset application resource file.
>
>All this is working except that I have to manually add the following
>
>#ifndef APSTUDIO_INVOKED
>/////////////////////////////////////////////////////////////////////////////
>//
>// Generated from the TEXTINCLUDE 3 resource.
>//
>#include "afxres.rc"
>#include "afxprint.rc"
>#include "afxolesv.rc"
>
>/////////////////////////////////////////////////////////////////////////////
>#endif // not APSTUDIO_INVOKED
>
>at the end of my subset application resource file every time I change
>its resource file using the resouce editor.
>
>BTW: To manage the resources for the two application I use defines
>together with conditional includes so that each application is including
>the correct "resource.h" file. These same defines are also used to
>create the subset application from the main application. My CWinApp
>class and other classes use the same source for both applications.
>
>Any suggestions on what changes I need to make to let the resource
>editor know that this resource file should have these lines included
>automatically?
>
>--Chet Murphy
>ModelWorks Software
>cmurphy@modelworks.com
>http://www.modelworks.com/express
>
>
At least in 1.5. the AppStudio menu option "Set Includes" solves our
somewhat similar problems: for more info, read Tech note #35 about using
multiple resource files.
HTH!
-----From: "John Elsbree"
Chet -
The TEXTINCLUDE 3 resource corresponds to the "Compile-time directives"
portion of the Resource Includes dialog in the IDE (accessible from the View
menu). Type your #include directives there, and the resource editor won't
overwrite them.
John
| Вернуться в корень Архива
|