Click here to Skip to main content
15,913,349 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to implement "class factory" in C# Pin
Marc Clifton30-Jun-02 5:30
mvaMarc Clifton30-Jun-02 5:30 
GeneralRe: How to implement "class factory" in C# Pin
Feng Qin30-Jun-02 18:41
Feng Qin30-Jun-02 18:41 
GeneralRe: How to implement "class factory" in C# Pin
Marc Clifton3-Jul-02 2:09
mvaMarc Clifton3-Jul-02 2:09 
GeneralConfiguration file for application Pin
tomiga26-Jun-02 22:17
tomiga26-Jun-02 22:17 
GeneralRe: Configuration file for application Pin
tomiga26-Jun-02 22:18
tomiga26-Jun-02 22:18 
GeneralRe: Configuration file for application Pin
James T. Johnson27-Jun-02 16:16
James T. Johnson27-Jun-02 16:16 
GeneralRe: Configuration file for application Pin
tomiga27-Jun-02 22:41
tomiga27-Jun-02 22:41 
GeneralResource problems... Pin
Ray Cassick26-Jun-02 18:10
Ray Cassick26-Jun-02 18:10 
Ok, I have been messing around with C# lately and am trying to use one of the controls I found here (Carlos's Outlookbar control). I am running into problems using his resX files in my app for some reason. I keep getting the following error when I try to run:

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) in the given assembly. Make sure "IconImages.resources" was correctly embedded or linked into assembly "csharp_OLApp".
baseName: IconImages locationInfo: <null> resource file name: IconImages.resources assembly: csharp_OLApp, Version=1.0.907.40862, Culture=neutral, PublicKeyToken=null


Now here are the particulars:

My app's namespace: csharp_OLApp
Old app's namespace: Demo
resX filename: IconImages.resX

Code @ the exception:
Bitmap icons = (Bitmap)rmListImages.GetObject("ListIcons");


Code that loads the resource in my app:
Assembly thisAssembly = Assembly.GetAssembly(Type.GetType("csharp_OLApp.Form1"));
rmListImages = new ResourceManager("IconImages", thisAssembly); 
rmBitmaps = new ResourceManager("Menus", thisAssembly);


Code that loads the resource in the old app:
Assembly thisAssembly = Assembly.GetAssembly(Type.GetType("Demo.Form1"));
rmListImages = new ResourceManager("IconImages", thisAssembly); 
rmBitmaps = new ResourceManager("Menus", thisAssembly);


Now, I have tried everytrick in the book here to try to get this to work. I have fiddled with every project paramter I could find reference to in every Usenet and web-board post I could find. I can not get this to work. I have loaded the resource editor in hopes that I could maybe spot old rements of the root namespace from the old 'Demo' app but I can;t seem to loacte that anywhere inside the resX file. The other thing I can not figure out is why the exception text points to a .resource file!Confused | :confused:

If anyone can lead me to a solution I would be GREATFULL

Cry | :(( Cry | :(( Cry | :(( Eek! | :eek:

Can someone please help out before I loose what is left of my hair!
GeneralRe: Resource problems... Pin
Ray Cassick26-Jun-02 19:09
Ray Cassick26-Jun-02 19:09 
QuestionNo .RC File??? Pin
Marc Clifton26-Jun-02 14:37
mvaMarc Clifton26-Jun-02 14:37 
AnswerRe: No .RC File??? Pin
Chris Rickard26-Jun-02 14:51
Chris Rickard26-Jun-02 14:51 
Questionstructs as value and classes as reference??? Pin
Marc Clifton26-Jun-02 14:15
mvaMarc Clifton26-Jun-02 14:15 
AnswerRe: structs as value and classes as reference??? Pin
Chris Rickard26-Jun-02 14:52
Chris Rickard26-Jun-02 14:52 
AnswerRe: structs as value and classes as reference??? Pin
Feng Qin26-Jun-02 16:31
Feng Qin26-Jun-02 16:31 
GeneralRe: structs as value and classes as reference??? Pin
Marc Clifton27-Jun-02 0:36
mvaMarc Clifton27-Jun-02 0:36 
GeneralRe: structs as value and classes as reference??? Pin
SimonS27-Jun-02 2:27
SimonS27-Jun-02 2:27 
GeneralRe: structs as value and classes as reference??? Pin
Andy Smith27-Jun-02 11:17
Andy Smith27-Jun-02 11:17 
GeneralRe: structs as value and classes as reference??? Pin
Feng Qin27-Jun-02 18:38
Feng Qin27-Jun-02 18:38 
QuestionWhat do you think about no global variables? Pin
Marc Clifton26-Jun-02 14:14
mvaMarc Clifton26-Jun-02 14:14 
AnswerRe: What do you think about no global variables? Pin
Chris Rickard26-Jun-02 14:47
Chris Rickard26-Jun-02 14:47 
Generalre: globals, and what about messaging? Pin
Marc Clifton27-Jun-02 0:46
mvaMarc Clifton27-Jun-02 0:46 
GeneralRe: re: globals, and what about messaging? Pin
Chris Rickard27-Jun-02 4:17
Chris Rickard27-Jun-02 4:17 
GeneralInvoke members Pin
Wizard_0126-Jun-02 5:41
Wizard_0126-Jun-02 5:41 
GeneralRe: Invoke members Pin
Chris Rickard26-Jun-02 7:44
Chris Rickard26-Jun-02 7:44 
GeneralRe: Invoke members Pin
Wizard_0126-Jun-02 8:23
Wizard_0126-Jun-02 8:23 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.