CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: Libary File

  1. #1
    Join Date
    Feb 2001
    Location
    New Jersey
    Posts
    312

    Libary File

    I want to add a bitmap to my MFC libary file.
    It seemed to add it and it called it Script1.rc
    but it doesnt find the bitmap I called LETTERS

    What am I doing wrong

    Code:
    CBitmap bitmap;
    bitmap.LoadBitmap(LETTERS);
    CDC dcComp;
    http://www.dewgames.com
    Shareware and Free games!

  2. #2
    Join Date
    Apr 1999
    Posts
    3,585
    Using the resource editor, open your .rc file for the project. Make sure that the bitmap exists in the resource file and has the name LETTERS. Now, look in the resource.h file for a "#define" statement for LETTERS. If you are successful finding the above, make sure you are pointing to the correct resource handle. For example, where is the LETTERS resource located? Is it in a dll perhaps?
    Gort...Klaatu, Barada Nikto!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured