Hi all,
Please anyone would be kind enough to test this code and tell me
whether it work on your device or not...

there are 5 images as embedded resource in a c# dll and I am trying to get
than from an application. I have tested this with HTC TyTn devices.... it
just throws me a weird exception, with just Exception as a message !!!

Code:

Assembly asm = Assembly.LoadFrom("appres.dll");

string[] resNames = asm.GetManifestResourceNames();

Bitmap[] resBmps = new Bitmap[resNames.Length];

for (int i = 0; i < resNames.Length; i++)

{

try

{

Stream stream = asm.GetManifestResourceStream(resNames[i]);

resBmps[i] = new Bitmap(stream);

}

catch (Exception ex)

{
MessageBox.Show(ex.Message);
MessageBox.Show(ex.StackTrace);

}

}