
CopyMemory API not working
John,
Without the specific code, it is hard to determine the
problem. That said, the error probably has to do with
the intended target or source data type. Are they arrays
and if so what time? Strings are handled much differentlye
in NET as to earlier systems. Please include a sample of
the code that includes the identification of the source
and target and the call.
HTH
Pat
Quote:
>-----Original Message-----
>Hi,
>Can anyone help? I'm trying to get the CopyMemory
(RtlMoveMemory) API to
Quote:
>work but it just keeps failing and terminating my
application.
>I changed the data types for Destination and Source from
Any to String and
>Integer as Any is not supported in .net
>Public Declare Sub CopyMemory Lib "kernel32"
Alias "RtlMoveMemory" (ByRef
Quote:
>Destination As String, ByRef Source As Integer, ByVal
Length As Integer)
>Any ideas appreciated!
>John
>.