Getting Client structure
#9

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;


Messages In This Thread
[No subject] - by Nikolee - 03-30-2013, 11:38 PM
[No subject] - by Maxes727 - 07-01-2013, 07:30 AM
[No subject] - by filix_93 - 07-01-2013, 07:38 AM
[No subject] - by Maxes727 - 07-01-2013, 07:46 AM
[No subject] - by Wizatek - 07-01-2013, 07:58 AM
[No subject] - by someone - 07-01-2013, 09:08 AM
[No subject] - by Maxes727 - 07-01-2013, 09:14 AM
[No subject] - by HateMe - 07-01-2013, 11:28 AM
[No subject] - by someone - 07-01-2013, 03:20 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)