Link to home
Start Free TrialLog in
Avatar of raw_enha
raw_enha

asked on

Adding a bitmap as a resource

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.
ASKER CERTIFIED SOLUTION
Avatar of DanRollins
DanRollins
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of raw_enha
raw_enha

ASKER

thanks, that worked.