• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 278
  • Last Modified:

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.
0
raw_enha
Asked:
raw_enha
1 Solution
 
raw_enhaAuthor Commented:
thanks, that worked.
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now