CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: VarPtr in .net

  1. #1
    Join Date
    Oct 2008
    Posts
    1

    VarPtr in .net

    Hello. I have a Pic conected by usb to a PC and I need to make a program in .net. The code in VB6 is something like that

    MPUSBRead(myOutPipe, VarPtr(SendData(0)), 1, recievedlength, 100)

    I need a pointer to a array of long as secont parameter, but I don't know how to replace the VarPtr in .net

    I'm not properly a programmer so please post any kind of help.
    Last edited by asdrojas; October 6th, 2008 at 05:29 PM.

  2. #2
    Join Date
    Jan 2006
    Location
    Fox Lake, IL
    Posts
    15,007

    Re: VarPtr in .net

    vb doesn't have pointers. look into UNSAFE code samples
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

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

Featured