Resource [Archive] - C Board

PDA

View Full Version : Resource


tare
07-02-2002, 01:20 PM
How do i include a picture as resource with Microsoft Visual C++ 5.0?

MrWizard
07-03-2002, 07:22 PM
Simply Select Insert, followed by Resource. This will bring up the resource selector. Select Bitmap (assuming you want a bitmap?) and there you have it. If you wanted to use that you can use the macro MAKEINTRESOURCE( ID_MY_RESOURCE ) this converts an integer value (the name constant) to a resource compatible value. If you don't want to use the macros make sure you have you ID's as strings with quotes. Also, obviously, ID_MY_RESOURCE is a fictious resource ID. Have fun.