Groups | Blog | Home
all groups > vb.net upgrade > january 2005 >

vb.net upgrade : coversion help


josh eldredge via DotNetMonster.com
1/7/2005 3:51:03 PM
i have the vb6 code as follows

Private Declare Sub MoveMemory _
Lib "KERNEL32" Alias "RtlMoveMemory" _
(hpvDest As Any, _
hpvSource As Any, _
ByVal cbCopy As Long)

i need to convert this to .NET. I have changed the "As Any" to "As Object". It now is not doing what I need it to do. As I call to it later in my program, it is giving me random numbers rather than that which is passed to it.
Am I converting it correctly, switching it to "As Object"?

--
Herfried K. Wagner [MVP]
1/7/2005 11:16:48 PM
"josh eldredge via DotNetMonster.com" <forum@DotNetMonster.com> schrieb:
[quoted text, click to view]

I doubt that you need this function. As said in an earlier post, please
post the code that uses 'MoveMemory' and the exact reason why you need this
function.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
AddThis Social Bookmark Button