VB 2003 defining word, unions and typedef

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • cmdolcet69
    New Member
    • Sep 2007
    • 25

    VB 2003 defining word, unions and typedef

    Is there any way in VB 2003 to define the following code:

    Code:
    /* Global Type Definitions */
    typedef    unsigned char     byte;          // 'byte' is an 8-bit unsigned value
    typedef    unsigned int        word;         // 'word' is a 16-bit unsigned value
     
     
    /* Global Structure Definitions */
    struct byte_low_hi {
     byte low_byte;
     byte high_byte;
    };
     
    /* Global Union Definitions */
    union word_byte {
     word                            word16;
     struct    byte_low_hi     byte8;
    };
  • debasisdas
    Recognized Expert Expert
    • Dec 2006
    • 8119

    #2
    Question moved to .NET Forum.

    Comment

    Working...