Article View: borland.public.cppbuilder.nativeapi
Article #10502Re: CopyMemory API problem
From: Martin C
Date: Mon, 12 Apr 2004 20:08
Date: Mon, 12 Apr 2004 20:08
27 lines
2047 bytes
2047 bytes
Thanks Bob again for your help and reply. Well the good news that the AV problem is solved just by writing CopyMemory as follows: CopyMemory((void*)WriteAddress,(void*) ReadAddress, sizeof(Granularity)); Now the bad news is that nothing happens after I run the program, in other words memory are not changed at all, although when I try the VB code exe, it changes! So I overlooked my code twice to make sure I didn't miss anything while translating the code from VB to BCB, and I really can't find even 1 char missing in my code... If you can give me any idea on what exactly I might be doing wrong or missed, I will appreciate it so much. Once again thank you and BR "Bob Gonder" <notbg@notmindspring.invalid> wrote in message news:qkkm70p57m1qsqpvf7a292e844mm859bg9@4ax.com... > Or, you could override (cast) their types: > > CopyMemory((void*)WriteAddress,(void*) ReadAddress, Granularity); > >
Technical Details
Message-ID:
<407b5a2b@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news.glorb.com!newsrout1.ntli.net!news.ntli.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<40786e5f@newsgroups.borland.com> <5v7m701261mpcjc68up9v6m226cd698sq8@4ax.com> <407b397b@newsgroups.borland.com> <4kgm70p9rkijgdp1sopku8vkn46b52cbg3@4ax.com> <407b4eab@newsgroups.borland.com> <qkkm70p57m1qsqpvf7a292e844mm859bg9@4ax.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,aeea745eda602570 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2004-04-12 20:39:56 PST From: "Martin C" <martincplus@hotmail.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <40786e5f@newsgroups.borland.com> <5v7m701261mpcjc68up9v6m226cd698sq8@4ax.com> <407b397b@newsgroups.borland.com> <4kgm70p9rkijgdp1sopku8vkn46b52cbg3@4ax.com> <407b4eab@newsgroups.borland.com> <qkkm70p57m1qsqpvf7a292e844mm859bg9@4ax.com> Subject: Re: CopyMemory API problem Date: Mon, 12 Apr 2004 22:08:54 +0200 Lines: 29 Organization: V Safe X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 NNTP-Posting-Host: 81.10.4.238 Message-ID: <407b5a2b@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1081825835 81.10.4.238 (12 Apr 2004 20:10:35 -0800) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news.glorb.com!newsrout1.ntli.net!news.ntli.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail