Advertisement Jump to content
Sign in to follow this  

resource.h file

This topic is 3865 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I am working on a new project in VS2005 V++. When I add the menu items, the compiler automatically generates my resource.h file. Everything works fine when I add "window-tile". When I add "window-cascade", the compiler appends a numeric value "ID_WINDOW_CASCADE" within my resource.h file. The following is the contents of my resource.h file.
// Microsoft Visual C++ generated include file.
// Used by TEST.rc
#define IDR_MENU1                       101
#define ID_WINDOW_CASCADE40001          40001
#define ID_WINDOW_TILE                  40002

// Next default values for new objects
#define _APS_NEXT_RESOURCE_VALUE        102
#define _APS_NEXT_COMMAND_VALUE         40003
#define _APS_NEXT_CONTROL_VALUE         1001
#define _APS_NEXT_SYMED_VALUE           101

How can I get the #define statement for "ID_WINDOW_CASCADE" look like the #define statement for "ID_WINDOW_TILE". I tried to manually remove the "40001" but then my code does not react when I select "Window-Cascade" during run-time. Any help would be greatly appreciated.

Share this post

Link to post
Share on other sites
Thanks for the response. I should have mentioned that I did remove the numbers from the .rc file as well.

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using, you agree to our community Guidelines, Terms of Use, and Privacy Policy. is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!