Question : Convert VarPtr to VB.Net

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

Answer : Convert VarPtr to VB.Net

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
Random Solutions  
 
programming4us programming4us