The resource.h file in a mfc project contains 4 #defines
_APS_NEXT_RESOURCE_VALUE, _APS_NEXT_COMMAND_VALUE, _APS_NEXT_CONTROL_VALUE,
_APS_NEXT_SYMED_VALUE
Obviously the _APS_NEXT_RESOURCE_VALUE is used for allocating the id of the
next resource. But how is the id for a string in a string table allocated?
The MSDN document(TN035) says that the resource value should be between
1-0x6FFF, but the string ids go beyond this range. Also the string ids and
the resource ids of other resources are not unique. How is it handled? or
does it have a different range.
Also when is the _APS_NEXT_CONTROL_VALUE incremented? Is it when a new
control is added to a dialog/form? or is it incremented during some other
time?
TIA,
Pradeep
I just experimented a little with this. Stringtable entries take their
values calculated as the next free value from the selected string in the
table.
Different types of resources can have identical values - *must* have the
same values in some cases (witness menu items and string table entries for
the statusbar/tooltip), controls can even have the same value, as long as
they are located on different dialog templates.
Do what I did! Create an empty project, adding resources, inspecting the
_AFX_NEXT definitions. Change the _AFX_-definitions by hand and add yet more
resources.
Johan Rosengren
Responsable Informatique
PACTA S.A.
"Pradeep" <jain.p...@de.bosch.com> wrote in message
news:9crrtr$2f3$1...@proxy.fe.internet.bosch.com...