Thread: DLL & Ressources

  1. #1
    Registered User
    Join Date
    Jun 2004
    Posts
    13

    DLL & Ressources

    Hi all.

    I've a question about DLL & Ressources onder Windows. for my little game i put the bitmaps into a DLL and i load it with LoadBitmap (...) in my program. Is there a way to load also other ressources, such *.gif and *.tga form the MSVC++ Resource-File? If yes, can someone gif me an example?

    Thanks & greetings outlast

  2. #2
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,895
    Not that easily. You can use FindResource, LoadResource and LockResource to access the binary data embedded in the exe, but interpreting it is up to you.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  3. #3
    Registered User
    Join Date
    Jun 2004
    Posts
    13
    hmmmm... okay, thanks. so i can as well doing the whole stuff by myself, writing my own "packer".

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. non-MFC DLL with MFC app question.
    By Kempelen in forum Windows Programming
    Replies: 10
    Last Post: 08-20-2008, 07:11 AM
  2. dll communicating between each other
    By cloudy in forum C++ Programming
    Replies: 5
    Last Post: 06-17-2005, 02:20 AM
  3. DLL and std::string woes!
    By Magos in forum C++ Programming
    Replies: 7
    Last Post: 09-08-2004, 12:34 PM
  4. Using class with DLL
    By greg2 in forum C++ Programming
    Replies: 2
    Last Post: 09-12-2003, 05:24 AM
  5. .lib vs .h vs .dll
    By Shadow12345 in forum C++ Programming
    Replies: 13
    Last Post: 01-01-2003, 05:29 AM