Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

RESOURCE.H

0 views
Skip to first unread message

TISSIER Jerome

unread,
Apr 11, 1997, 3:00:00 AM4/11/97
to

Is it possible to regenerate a resource.h file under Microsoft
developper studio (version 4.2 or 5.0) ?

We are 3 persons working on the same project, and even with
Visual Source Safe, we have a lot of different IDs with the same
number value. The best for us would be to destroy the actual
resource.h file, and let the developer studio regenerate it.

If anyone has an idea of how to do that, please answer to this
request or mailto:jtis...@sgop.societe-generale.fr.

Thank's in advance.

Jerome.

Ken Nelton

unread,
Apr 11, 1997, 3:00:00 AM4/11/97
to

>
> We are 3 persons working on the same project, and even with
> Visual Source Safe, we have a lot of different IDs with the same
> number value. The best for us would be to destroy the actual
> resource.h file, and let the developer studio regenerate it.
>
> Jerome.

I do not know of a way to regenerate the header files. We
use a method similar to that described in Technical Note 35:
Using Multiple ResourceFiles and Header Files with Visual
C++.

Using this method, you would be splitting the resource into
several resources and then including them into the main
program resource ( View-Resource Includes ). So, we have
multiple resource files ( and resource file headers ) in a
single project. You have to use a separate header file or
you can still have a problem with resource.h. We have a
separate header file for each resource file:

resource1.rc uses resource1.dlg
resource2.rc uses resource2.dlg

You can set up the header files so they can automatically
assign ids that do not overlap those of other headers.

One problem with this method is that VC 4.2 does not
appear to recognize changes in resources included into the
main resource so you manually have to force a rebuild all.

Also, we have taken to renaming the main resource header
to ApplicationName.dlg rather than resource.h.

Hope this helps...Maybe 5.0 has a better method,

Ken

0 new messages