Re: Struck with CopyMemory API



Electronic Screw wrote:
> Hi All, I am goin thru the articleid 282474 on
> http://support.microsoft.com/default.aspx?scid=kb;en-us;282474 to
> define Custom Page Sizes. The operating system i am using is Windows
> Xp Professional. When i run the program and try to create a new
> Custom Page, Visual Basic ends saying Visual Basic has encountered a
> problem and needs to close. When i debug i found this got struck at
> CopyMemory. How could i use this? I am using Visual Basic 6.0
> Professional Edition SP3.

Sounds like you either forgot a ByVal or used one where it shouldn't be. If you're
copying data where you shouldn't be, that's a pretty classic *KaBoom!* scenario. (On
NT systems, any address <&10000 is definitely off-limits, btw.)
--
Working Without a .NET?
http://classicvb.org/petition


.



Relevant Pages

  • Struck with CopyMemory API
    ... Custom Page Sizes. ... The operating system i am using is Windows Xp ... When i run the program and try to create a new Custom Page, ...
    (microsoft.public.vb.winapi)
  • Re: Custom Autofilter defaults
    ... anything - Just precede & follow the criteria with the asterisk ... Operating System: ... I would like to change my default selection in the custom autofilter to speed ... first choice. ...
    (microsoft.public.mac.office.excel)
  • Re: avadirect.com?
    ... or, can anyone offer any alternative sources of quality, competitively priced custom PC's sold without an operating system? ...
    (alt.comp.hardware.pc-homebuilt)
  • Currency symbol issues with xlsx file format
    ... Operating System: ... Processor: intel ... When I loaded it, once again Excel has changed it to 'Custom' with the $ symbol. ...
    (microsoft.public.mac.office.excel)