bucz
July 27th, 2007, 06:26 AM
I have made some Form as a control and I want it to pop-up (RCAboutBox) in other project (MainProject). In MainProject I have added a reference to that DLL and I wanted to invoke it by myDIalog->ShowForm. Then, program crashes and I get an exception:
An unhandled exception of type 'System.Resources.MissingManifestResourceException' occurred in mscorlib.dll
Additional information: Could not find any resources appropriate for the specified culture or the neutral culture. Make sure "RCnamespace.RCAboutBoxControl.resources" was correctly embedded or linked into assembly "RCAboutBox" at compile time, or that all the satellite assemblies required are loadable and fully signed.
Th line, where the bitmap is loaded is:
this->pictureBox1->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"pictureBox1.Image")));
It is a normal button with a bitmap, so I don't know where is a problem. Maybe with some namespace setting, when I run this window from orher program?
An unhandled exception of type 'System.Resources.MissingManifestResourceException' occurred in mscorlib.dll
Additional information: Could not find any resources appropriate for the specified culture or the neutral culture. Make sure "RCnamespace.RCAboutBoxControl.resources" was correctly embedded or linked into assembly "RCAboutBox" at compile time, or that all the satellite assemblies required are loadable and fully signed.
Th line, where the bitmap is loaded is:
this->pictureBox1->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"pictureBox1.Image")));
It is a normal button with a bitmap, so I don't know where is a problem. Maybe with some namespace setting, when I run this window from orher program?