Constant MissingManifestResourceExceptions

  • Thread starter Thread starter wsmbill
  • Start date Start date
W

wsmbill

My company has been using Borland's IDEs for years and we're just now
migrating to Microsoft. I'm in the process of learning visual c++ by
trial and error.

I have created a test GUI app, and things are going well except any
time I try to set a custom icon or image on a control (like a button or
menu item) I get a MissingManifestResourceException after the app
compiles.

Why is this happening? I would think Microsoft would set up this IDE
so that you could just set icons for items without having to do
anything special, it seems like a pretty darn common task!

Thanks!
Bill Henderson
 
I figured it out on my own.

Apparently this problem exists if your form class name does not match
the name of the file in which it's defined. The file in my test
project was called frmMain.h and the form was called Form1. I renamed
the form class to frmMain and the problem went away.
 

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

Back
Top