views:

157

answers:

1

The resource editor keeps wiping out code of this form in my .rc:

#ifndef V2
IDB_SPLASHSCREEN        BITMAP                  "res\\xyz v1.bmp"
#else
IDB_SPLASHSCREEN        BITMAP                  "res\\xyz v2.bmp"
#endif

Anyone know of a workaround? Better way to accomplish the same?

+2  A: 

MFC projects in Visual Studio normally contain a .rc2 file, which is intended for user-defined resources. If you add your bitmap resources to this file, they won't be modified by the Visual Studio resource editor.

You can read more about this here, and there's some good information in the answers to this question here on StackOverflow.

ChrisN