[Gambas-user] How to pass a structure to a C routine
martin p cristia
tercoide at ...67...
Wed Aug 19 02:46:34 CEST 2015
Hi:
I need to pass a structure to a C routine
Public Struct punto3d
x As Float
Y As Float
z As Float
End Struct
and call it like this:
dim p1 as new punto3d
fXnew = rotate3D(p1)
how to declare?
Public Extern rotate3D( point3D as ?????) As Float
and how to use the structure in C?
struct punto3D {
double x;
double y;
double z;
};
double rotate3D( punto3D pp)
.
.
.
-- Saludos Ing. Martin P Cristia
More information about the User
mailing list