?
Solved

Convert VarPtr to VB.Net

Posted on 2005-05-02
2
Medium Priority
?
2,043 Views
Last Modified: 2012-06-22
Hi Experts

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

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

'====================================

;-)
Shiju
0
Comment
Question by:Shiju Sasidharan
2 Comments
 
LVL 13

Accepted Solution

by:
softplus earned 2000 total points
ID: 13908093
Hi shijusn,
Try these:
http://www.codeproject.com/vb/net/netcopymemorysample.asp
http://www.codeproject.com/vb/net/CopyMemory_in_Net.asp
in vb.net 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.
John
0
 
LVL 14

Author Comment

by:Shiju Sasidharan
ID: 13958893
Thank u softplus
    that was really helpful

;-)
Shiju
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A while ago, I was working on a Windows Forms application and I needed a special label control with reflection (glass) effect to show some titles in a stylish way. I've always enjoyed working with graphics, but it's never too clever to re-invent …
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
Suggested Courses
Course of the Month16 days, left to enroll

850 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