Re: Struck with CopyMemory API
- From: "Mike D Sutton" <EDais@xxxxxxxx>
- Date: Fri, 22 Jul 2005 09:34:25 +0100
> The API i used was
> Public Declare Sub CopyMemory Lib "kernel32" Alias "RtlMoveMemory" _
> (Destination As Any, Source As Any, ByVal Length As Long) as it was given in
> the article http://support.microsoft.com/default.aspx?scid=kb;en-us;282474.
> And the call where i got struck is
> 'VB Code
> Dim pDevMode as DEVMODE
> Dim aDevMode() as Byte
> Call CopyMemory(pDevMode, aDevMode(1), Len(pDevMode))
> '---------------
> When i open the ErrorReport .. it says error Mod Name: oleaut32.dll
> ModVer: 3.50.5018.1 Offset: 0002862b
Presumably you've also got a "ReDim aDevMode(1 to Len(pDevMode)) As Byte" in there, preferably just before the
CopyMemory() line?
Mike
- Microsoft Visual Basic MVP -
E-Mail: EDais@xxxxxxxx
WWW: Http://EDais.mvps.org/
.
- Follow-Ups:
- Re: Struck with CopyMemory API
- From: Electronic Screw
- Re: Struck with CopyMemory API
- References:
- Struck with CopyMemory API
- From: Electronic Screw
- Re: Struck with CopyMemory API
- From: Karl E. Peterson
- Re: Struck with CopyMemory API
- From: Mike D Sutton
- Re: Struck with CopyMemory API
- From: Karl E. Peterson
- Re: Struck with CopyMemory API
- From: Electronic Screw
- Struck with CopyMemory API
- Prev by Date: Re: Windows Password Validation
- Next by Date: Re: Struck with CopyMemory API
- Previous by thread: Re: Struck with CopyMemory API
- Next by thread: Re: Struck with CopyMemory API
- Index(es):