MissingManifestResourceException, please urgent

J

Jacobo Rodriguez

Hello I'm writting a MC++ application, but I have a serius problem. I
can't add any resource via windows forms editor because I ever get a
MissingManifestResourceException into the function InitializeComponent.
For example: Creating a picture box and placing an Image as background,
or creating an ImageLists and add some images to this imagelist ever
produces a MissingManifestResourceException in lines like this:
this->pictureBox1->BackgroundImage = (__try_cast<System::Drawing::Image
* >(resources->GetObject(S"pictureBox1.BackgroundImage")));

At the moment, I am loading the resources by hand, and they are extern
to the main assembly, but I want to include them into the .exe.
Can anyone help me?

Thanks in advance.
Regards
--
Jacobo Rodríguez Villar

Proyectos en desarrollo:

http://www.typhoonlabs.com
 
B

bmxouch

Check to see if you have two classes, structs ... defined in the sam
file. Seems to cause a problem. A very undescriptive exception if
do say so


-
bmxouc
 
B

bigagib

Had same issue. Image on a button was causing exception. Exceptio
somehow was tied to an enum that I had added within the same cs fil
but outside the form class. Took the enum out and place it in a new c
file. Exception disappeared. Go figure...:wha


-
bigagi
 
Top