Help! - MissingManifestResourceException

B

bern11

What does the above error mean? I put a menu onto a form, now it will
not run and it kicks out the above error. I did not rename any classes
(as referenced in the only help I could find on the subject). It fails
when trying to load the image for the menu items:

this->newToolStripMenuItem->Image =
(cli::safe_cast<System::Drawing::Image^
(resources->GetObject(L"newToolStripMenuItem.Image")));

But the resX file is there with the appropriate image. The error also
states:

"Could not find any resources appropriate for the specified culture or
the neutral culture."

Where is culture specified?
 
B

bern11

I got this to work. You guys have some wierd memory issue. I had
changed the name of the source file from Form1.h to MyApp.h and andded a
second form. I noticed in the log file it kept going back to Form1.h
(specifically: namespace.Form1.resource instead of
namespace.MyApp.resource). I fixed this by renaming MyApp.h to MyApp.h
(no change - I just retyped it), then exited and restarted windows - and
it all worked. I'm not sure if my retyping actually worked, but
multiple restarts hadn't. Maybe you just need to restart after renaming
a file...???
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top