C structures & equivilent in PB
Posted: Thu Oct 12, 2006 6:14 pm
Hello
In C I've got a array of structures, defined like this :
etc. Whilst I've defined the PB structure using
and dimmed and array to hold the fields, I do have one problem : When passing the array to a C DLL, I've found that the alignment is all wrong, and that the contents of file[1] is taken from further down the array (around files[8] or so).
Is there any way I can get to the two to exactly align ?
In C I've got a array of structures, defined like this :
Code: Select all
struct {
char *fileName;
int fD;
} example
struct example files[]={
"1.dta",1
"2.dta",2
};Code: Select all
structure example
fileName.s
fd.l
enstructureIs there any way I can get to the two to exactly align ?