Results 1 to 3 of 3

Thread: Translate C structure to VB

  1. #1

    Thread Starter
    Member
    Join Date
    Nov 1999
    Location
    Princeton, New Jersey
    Posts
    46

    Translate C structure to VB

    Hello,
    Anyone have any ideas about how they would translate the following structure to VB? The sub-structure is throwing me off...
    ???

    //-------------

    typedef struct _API_PROFILE
    {
    DWORD dwTray;
    DWORD dwID;
    struct
    {
    char szCode[13]
    } Field[7];
    DWORD dwLeftT;
    } API_PROFILE, FAR * LD_API_PROFILE;

    //------------

    Thanks, Dale.

  2. #2
    jim mcnamara
    Guest
    Code:
    typedef struct _API_PROFILE              Private Type _API_PROFILE
    {                                                             dwTray  as  Long  
    DWORD dwTray;                                      dwId    as  Long  
    DWORD dwID;                                        Field(7) as String*13
    struct                                                      dwLeft   as  Long   
    {                                                           End Type
    char szCode[13]                               Dim API_PROFILE as _API_PROFILE
    } Field[7]; 
    DWORD dwLeftT; 
    } API_PROFILE, FAR * LD_API_PROFILE; <-- this is a pointer, looks like Borland C with the FAR modifier

  3. #3

    Thread Starter
    Member
    Join Date
    Nov 1999
    Location
    Princeton, New Jersey
    Posts
    46
    Cool, that works. Thanks very much.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width