Convert VarPtr to VB.Net

Posted on 2005-05-02
Last Modified: 2012-06-22
Hi Experts

here is some code segment in VB.
How to convert this into VB.Net
Dim buff() As Byte
Dim cbRequired As Integer

  CopyMemory(Info, VarPtr(buff(0)), Len(Info))


Question by:Shiju Sasidharan
    LVL 13

    Accepted Solution

    Hi shijusn,
    Try these:
    in it's not quite so simple, as you're actually doing something you "shouldn't be doing" :). But it works, you just need a bit more to cover your back.
    LVL 14

    Author Comment

    by:Shiju Sasidharan
    Thank u softplus
        that was really helpful


    Featured Post

    Highfive + Dolby Voice = No More Audio Complaints!

    Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

    Join & Write a Comment

    Article by: jpaulino
    XML Literals are a great way to handle XML files and the community doesn’t use it as much as it should.  An XML Literal is like a String ( Literal, only instead of starting and ending with w…
    Introduction As chip makers focus on adding processor cores over increasing clock speed, developers need to utilize the features of modern CPUs.  One of the ways we can do this is by implementing parallel algorithms in our software.   One recent…
    Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
    In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor ( If you're interested in additional methods for monitoring bandwidt…

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now