Examining Microsoft's J/Direct
By Andrew Wilson
Dr. Dobb's Journal January 1998
//Native C Structure typedef struct _MYSTRUCT { DWORD dwLen; char szMyString[24]; } MYSTRUCT; //J/Direct Structure Conversion for Fixed Length Types /** @dll.struct() */ { int dwLen; /** @dll.structmap([type=FIXEDARRAY, size=24]) */ char szMyString[]; } //J/Direct Structure Conversion for String Types /** @dll.struct() */ class MYSTRUCT { int dwLen; /** @dll.structmap([type=char[24]) */ String szMyString; // converted to a string object }
Example 4: Conversions that must occur whenever fixed-length array objects are created.
Copyright © 1998, Dr. Dobb's Journal