🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #10500

Re: CopyMemory API problem

#10500
From: Martin C
Date: Mon, 12 Apr 2004 19:19
23 lines
1917 bytes
Bob,

Thank you for your reply and support.

> Re-reading the help, I think this line might also be wrong:
> >    CopyMemory(&WriteAddress, &ReadAddress, Granularity); // Error shows
>
> More likely to be
>     CopyMemory(WriteAddress, ReadAddress, Granularity);

First of all there is no relation between 0013F584 and the 3 parameters at
all. I've checked this twice. Now When I remove the (&)  all I receive is
compiler error as shown below, as the CopyMemory parameter requires Void,
and what I am passing is integer.

[C++ Error] Unit1.cpp(120): E2034 Cannot convert 'int' to 'void *'
[C++ Error] Unit1.cpp(120): E2342 Type mismatch in parameter '__dest'
(wanted 'void *', got 'int')


P.S. I really tried to go over the help but unfortunately I can't see what I
am missing, also I've tried to search the net before posting but
unfortunately I ended up by nothing.
Technical Details
Message-ID: <407b4eab@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <40786e5f@newsgroups.borland.com> <5v7m701261mpcjc68up9v6m226cd698sq8@4ax.com> <407b397b@newsgroups.borland.com> <4kgm70p9rkijgdp1sopku8vkn46b52cbg3@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 19:39:27 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>
Subject: Re: CopyMemory API problem
Date: Mon, 12 Apr 2004 21:19:41 +0200
Lines: 25
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: <407b4eab@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1081822891 81.10.4.238 (12 Apr 2004 19:21:31 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail