CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: pranava

Search: Search took 0.03 seconds.

  1. Replies
    3
    Views
    3,344

    Re: Assigning values to union in C++

    Thanks, but that too didn't work. Someone else suggested this that worked ok.

    Use the compiler instead of the preprocessor.

    1
    2
    //#define UUID_SELF {0,0,0,2}
    const UUID UUID_SELF = {0,0,0,2}...
  2. Replies
    3
    Views
    3,344

    Assigning values to union in C++

    Hello I have the following C++ code

    typedef union UUID {
    unsigned char byte[16]; /**< Array of 16 bytes. */
    unsigned int ll[2]; /**< Array of two 64-bit words. */
    } UUID;

    struct...
Results 1 to 2 of 2





Click Here to Expand Forum to Full Width

Featured