Article View: borland.public.cppbuilder.nativeapi
Article #12500Re: API - Random error retrieving File Version
From: Alain R.
Date: Tue, 09 Dec 2003 11:17
Date: Tue, 09 Dec 2003 11:17
14 lines
1339 bytes
1339 bytes
Hi Remy, > > lpBuffer = HeapAlloc( GetProcessHeap(), HEAP_ZERO_MEMORY, dwSize ); > > I would suggest using GlobalAlloc() instead: Why do you suggest GlobalAlloc ? Which reasons motivated your choice ? > > LPVOID lpStr; > > I would suggest you use a char* instead: I already corrected this into char*, but i still don't know why it works with char* and not like MS wrote (in many articles) with LPVOID ;-( Alain
Technical Details
Message-ID:
<3fd5af47@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<3fd42976$1@newsgroups.borland.com> <3fd4ba79$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,59dc320eac75a4ea X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-12-09 03:39:21 PST From: "Alain R." <no.valid@email.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <3fd42976$1@newsgroups.borland.com> <3fd4ba79$1@newsgroups.borland.com> Subject: Re: API - Random error retrieving File Version Date: Tue, 9 Dec 2003 12:17:27 +0100 Lines: 16 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 NNTP-Posting-Host: 62.168.93.157 Message-ID: <3fd5af47@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1070968647 62.168.93.157 (9 Dec 2003 03:17:27 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail