G
Guest
I am trying to load a bitmap from an embedded resource (or from the disk, I get the same problem).
When I try to create a new Bitmap with either of the following lines
b = new Bitmap(fullFileName); //fullFileName looks like \Program Files\Windows\MyProgram\Image.gif, and the file definitely exists
or
b = new Bitmap(Assembly.GetExecutingAssembly().GetManifestResourceStream(ImageToLoad)); //where ImageToLoad looks like "MyAssemblyName.Image.gif" and It is an embedded resource.
I have this same exact code working on a PocketPC 2002 Project without a problem. I am now trying to get it to work on a project running on WinCE .NET 4.2 on a device called a "MidasPAD". I have the Midas SDK installed that came with the device.
When it hits the new Bitmap line, I get an exception being thrown. The exception is of type "Exception", and the Message Property's value is "Exception".
If there was a meaningful message, maybe I would be able to come to some sort of conclusion, but to no avail.
Anyone have any ideas?
When I try to create a new Bitmap with either of the following lines
b = new Bitmap(fullFileName); //fullFileName looks like \Program Files\Windows\MyProgram\Image.gif, and the file definitely exists
or
b = new Bitmap(Assembly.GetExecutingAssembly().GetManifestResourceStream(ImageToLoad)); //where ImageToLoad looks like "MyAssemblyName.Image.gif" and It is an embedded resource.
I have this same exact code working on a PocketPC 2002 Project without a problem. I am now trying to get it to work on a project running on WinCE .NET 4.2 on a device called a "MidasPAD". I have the Midas SDK installed that came with the device.
When it hits the new Bitmap line, I get an exception being thrown. The exception is of type "Exception", and the Message Property's value is "Exception".
If there was a meaningful message, maybe I would be able to come to some sort of conclusion, but to no avail.
Anyone have any ideas?