Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

C++, Delphi, and winsock

Options
  • 21-05-2004 12:36pm
    #1
    Registered Users Posts: 14,148 ✭✭✭✭


    Hey guys,

    slightly unusual question here:

    I'm looking for the equivalent in Delphi of the following piece of code in C/C++.
    #define WSAID_ACCEPTEX \ {0xb5367df1,0xcbac,0x11cf,{0x95,0xca,0x00,0x80,0x5f,0x48,0xa1,0x92}}
    

    referenced from the mswsock.h header file.


Comments

  • Registered Users Posts: 2,145 ✭✭✭dazberry


    Originally posted by Lemming

    #define WSAID_ACCEPTEX \ {0xb5367df1,0xcbac,0x11cf,{0x95,0xca,0x00,0x80,0x5f,0x48,0xa1,0x92}}
    

    I think it would be something like this:
    const
         WSAID_ACCEPTEX : TGUID = '{B5367DF1-CBAC-11CF-95CA-00805F48A192}';
    
    // or
    
    const
         WSAID_ACCEPTEX : TGUID = (D1: $B5367DF1;
                                   D2: $CBAC;
                                   D3: $11CF;
                                   D4: ($95,$CA,$00,$80,$5F,$48,$A1,$92));
    

    BUT - the format is ok, but I'm not sure if the order is correct.

    D.


  • Registered Users Posts: 14,148 ✭✭✭✭Lemming


    Cheers Daz :)

    I'll let you know how it goes


Advertisement