Thursday, February 21, 2008
Update: It was the DVD drive I used that Jade Empire did not like.
Tuesday, February 19, 2008
You have to use the StructLayout attribute applied to the class. the StructLayout attribute needs to be passed the parameter LayoutKind.Explicit. This makes it so you can declare the exact offset in the number of Bytes each field will have. Naturally you will need to use another attribute for each of the fields to specify this offset; the name of this attribute is FieldOffset. Both of these Attributes are in the System.Runtime.InteropServices namespace.
Here is an example where 2 32bit integers will share the same memory address as a 64bit integer.
public struct PairID
public long Id;
public int LowId;
public int HighId;
I have decided that I should finally make a blog, though I don’t really have time to maintain one. People around me have started to show signs that I annoy them with my ideas, so I decided to see if the internet that is comprised of complete and utter strangers will care about my random thoughts.