Results 1 to 3 of 3

Thread: how to convert dereference pointer in C code to VB code

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 2008
    Posts
    10

    how to convert dereference pointer in C code to VB code

    Hi,

    Actually I have faced a problem which is to convert dereference pointer in C code to VB code. The C code is like below:
    byte addr, int npoints, long *path, int freq

  2. #2
    Frenzied Member
    Join Date
    Dec 2007
    Posts
    1,072

    Re: how to convert dereference pointer in C code to VB code

    Dim addr as Byte, nPoints as integer, path as long, freq as int

    I don't know what long is. Is it an integer or long?

    Next time please post in the appropriate forum.

    If this is a C# question: http://www.vbforums.com/forumdisplay.php?f=30
    If this is a C or C++ question: http://www.vbforums.com/forumdisplay.php?f=9
    If this is a VB.NET question: http://www.vbforums.com/forumdisplay.php?f=25
    If this is a VB6- question: http://www.vbforums.com/forumdisplay.php?f=1

    -Zach

  3. #3

    Thread Starter
    New Member
    Join Date
    Jan 2008
    Posts
    10

    Re: how to convert dereference pointer in C code to VB code

    so sorry that i post in wrong forum, but I want know more how to convert long *path in C to VB. Is it just dim path as long because the * is a dereference pointer in C , so I really want to know how to declare this in VB.

    Thanks

    PS: long is long integer

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