Link to home
Start Free TrialLog in
Avatar of ketut
ketut

asked on

Pointers to Structures as Func Args

I have a header file to a WIN32 DLL.Lib  with the equivalent of this:

typedef struct
{
      int m;
} X_Y;

typedef  X_Y *X_Y;

// prototypes

void WINAPI Funct1(X_Y *px);     // px - a pointer to a struct X_Y;
void WINAPI Funct2(X_Y **ppx);   // ppx - a pointer to a pointer to struct X_Y;

-----------------------------------------------------

Questions:
(1) How do I code my program to call these two functions.
(2) How do I then access members?

(details please I'm a newbie programmer)

Thanks
ASKER CERTIFIED SOLUTION
Avatar of trillo
trillo

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial