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 - phenex

Pages: [1]
1
DotNet / First version released
« on: January 15, 2009, 11:43:00 pm »
Was the previous version of GetRect working for you? It was not working for me. It would throw an ArgumentException inside GetRect, on the PtrToStructure call, indicating that Rect should not be a value class.

This version works for me. It creates the structure for you, so you don't need any code inside GetRect except that which I've already pasted.

2
DotNet / First version released
« on: January 15, 2009, 08:30:34 am »
I went through the French forum (I don't speak French), and I didn't find this bug mentioned. Hopefully this is news to you.

It seems that there is a problem with String2D.GetRect. I was able to get it to work (as far as I can tell) by changing GetRect to:

Code: [Select]
public FloatRect GetRect()
{
return (FloatRect)Marshal.PtrToStructure(sfString_GetRect(This), typeof(FloatRect));
}


I'll be fixing any bugs I can find as I go through it. Thanks for the wrapper.

Pages: [1]