Thank you for ur valuable advices...
Post by Joseph M. NewcomerNot easily. This is one of the real defects in how Visual Studio works: it is hard to
import resources.
Now, there is no problem if you have a control 123 in ten different dialogs. Since the
control ID is interpreted relative to its own dialog, it is common to have many instances
of control 123. The control ID does not need to be globally unique.
This fails, however, if you had imported a dialog with radio buttons, and the name of one
of the radio buttons was already defined. The consequence is an out-of-sequence radio
button, and chaos rapidly follows. There can be similar problems any time the sequence
numbers matter, such as arrays of controls.
You always have the option of hand-editing resource.h. I know it is an ugly solution, but
it does work. You will then be prompted to re-load the resources if they were already
loaded, and it is VERY IMPORTANT to do a "Rebuild All" after any hand-edit of resource.h,
because it is not considered in the rebuild dependency analysis.
joe
On Fri, 3 Sep 2004 13:51:07 +0530, "Tony Thomas"
Post by Tony ThomasHi friends,
In my MFC project I have imported resources from another appliction,but some
of the ids of the newly added resources confilicts with the existing ids, is
there any way to make unique ids for all resources in the resource.h
file?.should i edit the file manually?
Expecting the answer form the experts programmes of this
form
Tony
Joseph M. Newcomer [MVP]
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm