troubleshooting Question 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 Below is the vb6 version (which works) and the version (which does not work).  If you have gotten it to work in please send along a code sample.


vb6 version
Private Declare Sub CpyMem Lib "kernel32" _
Alias "RtlMoveMemory" ( _
    pDst As Any, _
    pSrc As Any, _
    ByVal cBytes As Long _
) 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