troubleshooting Question

vb.net version of the cpymem api

Avatar of bill_home
bill_home asked on
Visual Basic ClassicVisual Basic.NET
8 Comments1 Solution514 ViewsLast Modified:
Has anyone used the cpymem api in vb.net. Below is the vb6 version (which works) and the vb.net version (which does not work).  If you have gotten it to work in vb.net please send along a code sample.

Thanks
Bill

vb6 version
Private Declare Sub CpyMem Lib "kernel32" _
Alias "RtlMoveMemory" ( _
    pDst As Any, _
    pSrc As Any, _
    ByVal cBytes As Long _
)

vb.net version
Private Declare Sub CpyMem Lib "kernel32" _
    Alias "RtlMoveMemory" ( _
        ByVal pDst As Object, _
        ByVal pSrc As Object, _
        ByVal cBytes As Int32 _
    )
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 8 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 8 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros