pinters to structs etc...

BlitzMax Forums/BlitzMax Programming/pinters to structs etc...

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

the pointer returned from the call to Pm_GetDeviceInfo() is a pointer to a struct of type:

typedef struct {
int structVersion;
const char* interf;
const char* name;
int input;
int output;
int opend;
}

my blitz interpretation of this is:

Type PmDeviceInfo
	Field	structVersion:Int
	Field	interf:Byte Ptr
	Field	name:Byte Ptr
	Field	Input:Int
	Field	output:Int
	Field	opened:Int
EndType


so all I want to do is print the strings pointed to by interf and name?