question with c -header file

kor kor at kor.com
Sun Mar 11 04:25:33 PDT 2007


hi,

how would the following translate to d, so that it will be callable? i don't have a problem with the struct, but the typedef.

struct _CONNECTION {
    long   Socket;                  // Client long.
    unsigned long  dwIP;                  // Client IP.
    void *pvPerConnectionUserData; // Application-defined value given in callback functions.
} CONNECTION, *PCONNECTION;



typedef BOOL (CALLBACK *ONCONNECTPROC)( PCONNECTION pConnection );



More information about the Digitalmars-d-learn mailing list