Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

C++, Delphi, and winsock

  • 21-05-2004 11:36AM
    #1
    Registered Users, Registered Users 2, Paid Member Posts: 14,175 ✭✭✭✭


    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, Registered Users 2 Posts: 2,157 ✭✭✭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, Registered Users 2, Paid Member Posts: 14,175 ✭✭✭✭Lemming


    Cheers Daz :)

    I'll let you know how it goes


Advertisement