Thread: Resource

  1. #1
    Registered User
    Join Date
    Nov 2001
    Posts
    21

    Resource

    How do i include a picture as resource with Microsoft Visual C++ 5.0?

  2. #2
    Registered User
    Join Date
    Apr 2002
    Posts
    1,571
    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.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Sorting out a resource manager
    By psychopath in forum Game Programming
    Replies: 1
    Last Post: 11-10-2008, 07:12 PM
  2. unmanaged resource
    By George2 in forum C++ Programming
    Replies: 2
    Last Post: 01-03-2008, 04:23 AM
  3. CreateProcess with Resource of executable, not the Filename
    By Ktulu in forum Windows Programming
    Replies: 4
    Last Post: 11-04-2006, 01:07 AM
  4. resource problem/question
    By stallion in forum Windows Programming
    Replies: 4
    Last Post: 01-29-2003, 02:08 PM
  5. Serial Communications in C
    By ExDigit in forum Windows Programming
    Replies: 7
    Last Post: 01-09-2002, 10:52 AM