Adding a bitmap as a resource

Posted on 2006-05-22
Last Modified: 2010-04-24
I'm trying to include a bitmap as a resource in my project.  I'm writing a Visual C++ .NET Windows Form Application.  I imported the resource.  I can see it in my resource viewer window.  However, I'm unable to figure out how to access it in my code.  I've tried using Assembly->GetManifestResourceStream to no avail.  I even just tried to see what resources were available using GetManifestResourceNames and my bitmap fails to show up in the list.  I just want to be able to create a System::Drawing::Bitmap object of that resource, but I can't figure out how.  Any help would be appreciated.  Thank you.  The reason behind there being so many points is that I'm under time constraints and need an answer quickly.
Question by:raw_enha
    LVL 49

    Accepted Solution


    Author Comment

    thanks, that worked.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Is Threat Intelligence?

    Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

    Suggested Solutions

    The following diagram presents a diamond class hierarchy: As depicted, diamond inheritance denotes when two classes (e.g., CDerived1 and CDerived2), separately extending a common base class (e.g., CBase), are sub classed simultaneously by a fourt…
    In Easy String Encryption Using CryptoAPI in C++ ( I described how to encrypt text and recommended that the encrypted text be stored as a series of hexadecimal digits -- because cyphertext may…
    Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
    This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor ( If you're looking for how to monitor bandwidth using netflow or packet s…

    761 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    7 Experts available now in Live!

    Get 1:1 Help Now