I know (or at least think) the following is not correct.
The comment says what I want to do, but I think the code will copy the data
not the address.
Is this one of the things that can't be done with VB?
Any suggestions?
Thanks
Public Declare Auto Sub CopyMemory1 Lib "KERNEL32" Alias "RtlMoveMem ory"
(ByVal pDest As Integer, ByRef Source As Byte, ByVal cbCopy As Integer)
'Copy address of lDevModeAsByte into lPrtInfo2 structure
Kernel.CopyMemo ry1(lPrtInfo2.p DevMode, lDevModeAsByte( 0), 4)
The comment says what I want to do, but I think the code will copy the data
not the address.
Is this one of the things that can't be done with VB?
Any suggestions?
Thanks
Public Declare Auto Sub CopyMemory1 Lib "KERNEL32" Alias "RtlMoveMem ory"
(ByVal pDest As Integer, ByRef Source As Byte, ByVal cbCopy As Integer)
'Copy address of lDevModeAsByte into lPrtInfo2 structure
Kernel.CopyMemo ry1(lPrtInfo2.p DevMode, lDevModeAsByte( 0), 4)
Comment