07-01-2013, 03:20 PM
This is not C/C++ proper format for a structure:
typedef struct {
int32 CraftItemID;
int32 CraftItemAmount;
} CRAFT <read=CraftRead>;
typedef struct {
int32 NameCount;
char Name[NameCount];
} STR;
In the first struct you cant attach functions to a struct its not a template, a templated us declared differently, in the second struct, you cant dinamically allocate a field size(unless yuour using constants). or pointers(which will use 32/64 bits depending on platform)
typedef struct {
int32 CraftItemID;
int32 CraftItemAmount;
} CRAFT ;
typedef struct {
int32 NameCount;
char* Name;
} STR;

