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

------------------------------------------------------------------------------
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to