Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Darwin226

Pages: [1]
1
DotNet / Image stream
« on: April 28, 2010, 03:59:16 pm »
The error is on this line

         Image img = new Image(stream);

The problem might be that Stream stream = a.GetManifestResourceStream("name.png");
doesn't know how to convert a png to a stream.
Keep in mind I don't know what I'm talking about, just guessing.

2
DotNet / Image stream
« on: April 27, 2010, 11:29:07 pm »
The Image constructor accepts Stream as one of the overloads.
I have an embedded image (a png file) and I'm loading it into a stream with Assembly.GetManifestResourceStream("name");

Then I make an image from that stream but it throws an error.
Object reference not set to an instance of an object.

If I use a .bmp image then it works fine.
Is there any way to load a png image?

3
DotNet / Setting up Visual Studio 2008
« on: April 07, 2010, 02:01:22 am »
So, I created a new project (console application) added the files in lib directory to the references and added the files in the extlibs directory next to my exe. Now I get this error

An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)

Help please :D

Pages: [1]
anything