raghu022597
asked on
Trouble with resource definition
Hi,
I am trying to create the 'Open' common dialog box and
I am using the sample code found in the help files of
the Microsoft Visual C++ 4.0 Standard Edition. Part
of the code is as follows:
cbString = LoadString(hInst, IDS_FILTERSTRING, szFilter,
sizeof(szFilter));
Towards the end of the help, it says
The string referred to by the IDS_FILTERSTRING value is
defined as follows in the resource-definition file.
STRINGTABLE
BEGIN
IDS_FILTERSTRING "Bitmap File(*.BMP)|*.bmp|"
END
Now, I assumed that I should include this IDS_FILTERSTRING
stuff in <projname>.rc file.
When I compile, I get a message saying that 'IDS_FILTERSTRING is an undefined keyword or key name' in .rc file. Could someone tell me where I should define this ID? Am I doing the right thing by including it in the <projname>.rc file? Any help will be greatly appreciated. Thanks in advance.
I am trying to create the 'Open' common dialog box and
I am using the sample code found in the help files of
the Microsoft Visual C++ 4.0 Standard Edition. Part
of the code is as follows:
cbString = LoadString(hInst, IDS_FILTERSTRING, szFilter,
sizeof(szFilter));
Towards the end of the help, it says
The string referred to by the IDS_FILTERSTRING value is
defined as follows in the resource-definition file.
STRINGTABLE
BEGIN
IDS_FILTERSTRING "Bitmap File(*.BMP)|*.bmp|"
END
Now, I assumed that I should include this IDS_FILTERSTRING
stuff in <projname>.rc file.
When I compile, I get a message saying that 'IDS_FILTERSTRING is an undefined keyword or key name' in .rc file. Could someone tell me where I should define this ID? Am I doing the right thing by including it in the <projname>.rc file? Any help will be greatly appreciated. Thanks in advance.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.