🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: new instead of GlobalAlloc

#14969
From: Vladimir Afanasyev
Date: Thu, 24 Jul 2003 07:28
12 lines
1352 bytes
Hi,

"Maurice Anderson" <mauriceanderson@hotmail.com> wrote:
>How would I write the equivalent code using new for the code below?
>
>unsigned long dwLength = 0;
>void *pBuffer = GlobalAlloc(GPTR, dwLength);

Your question is not clear.
Why you can't put this code in constructor?
Vladimir.
Technical Details
Message-ID: <3f1f8a82$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!64.152.100.70.MISMATCH!sjc70.webusenet.com!news.webusenet.com!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.online.be!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <3f1f7ed4@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,cb38ee1db20489cf
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-07-24 00:40:30 PST
From: "Vladimir Afanasyev" <avv@systema.kiev.ua>
Sender: "Vladimir Afanasyev" <avv@systema.kiev.ua>
Reply-To: "Vladimir Afanasyev" <avv@systema.kiev.ua>
Subject: Re: new instead of GlobalAlloc
Newsgroups: borland.public.cppbuilder.nativeapi
X-User-Info: 212.82.216.226 212.82.216.226    
X-Forwarded-For: 192.168.0.147
References:  <3f1f7ed4@newsgroups.borland.com>
NNTP-Posting-Host: 207.105.83.65
Message-ID: <3f1f8a82$1@newsgroups.borland.com>
Date: 24 Jul 2003 00:28:02 -0700
X-Trace: newsgroups.borland.com 1059031682 207.105.83.65 (24 Jul 2003 00:28:02 -0700)
Lines: 13
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!64.152.100.70.MISMATCH!sjc70.webusenet.com!news.webusenet.com!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.online.be!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail