Jump to content
  • Advertisement
Sign in to follow this  
CTEagle

resource.h file

This topic is 3651 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.
//{{NO_DEPENDENCIES}}
// 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
// 
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NEXT_RESOURCE_VALUE        102
#define _APS_NEXT_COMMAND_VALUE         40003
#define _APS_NEXT_CONTROL_VALUE         1001
#define _APS_NEXT_SYMED_VALUE           101
#endif
#endif

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
Advertisement
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 GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!