Article View: borland.public.cppbuilder.nativeapi
Article #7005Re: Memory problems: new versus GlobalAlloc
From: Remy Lebeau (TeamB)
Date: Tue, 22 Mar 2005 20:29
Date: Tue, 22 Mar 2005 20:29
26 lines
1819 bytes
1819 bytes
"wim bekker dv-rec com>" <wim<atdot> wrote in message news:42403f3c@newsgroups.borland.com... > What is the difference between new and GlobalAlloc (apart > from the fact that Borland or the OS manage it)? As far as SetStretchBltMode() is concerned, absolutely nothing. Memory is memory, regardless of the manager used to allocate/free it. > Where is the documentation I really need? Which documentation are you referring to? > How come SetStretchBltMode doesn't work good when using > memory allocated with new but works fine with memory allocated > with GlobalAlloc? The type of memory should not matter at all. Especially considering that SetStretchBltMode() does not accept a memory block as input to begin with, only an HDC and an int. My guess would be the error is elsewhere in your code. What does GetLastError() return when SetStretchBltMode() returns a value of 0? What does your code actually look like? Gambit
Technical Details
Message-ID:
<42408062$3@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<42403f3c@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,6b3a605b9bc38024 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <42403f3c@newsgroups.borland.com> Subject: Re: Memory problems: new versus GlobalAlloc Date: Tue, 22 Mar 2005 12:29:48 -0800 Lines: 28 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 68.69.17.41 Message-ID: <42408062$3@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1111523426 68.69.17.41 (22 Mar 2005 12:30:26 -0800) Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail