Article View: borland.public.cppbuilder.nativeapi
Article #14147Re: How to save a zip-file FROM the resource...
From: Dumboo
Date: Fri, 29 Aug 2003 06:15
Date: Fri, 29 Aug 2003 06:15
9 lines
1240 bytes
1240 bytes
if(MemoryHandle == NULL)
return;
BYTE *MemPtr = (BYTE *)LockResource(MemoryHandle);
std::auto_ptr<TMemoryStream>stream(new TMemoryStream);
stream->Write(MemPtr, Size);
// add this line
stream->SaveToFile("filename");
Technical Details
Message-ID:
<3f502081$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-05!sn-xit-09!supernews.com!news.maxwell.syr.edu!small1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<3f4e8776$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,f1923e03d3dce476 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-08-29 20:59:39 PST From: "Dumboo" <dumboo@nowhere.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <3f4e8776$1@newsgroups.borland.com> Subject: Re: How to save a zip-file FROM the resource... Date: Thu, 28 Aug 2003 23:15:49 -0700 Lines: 11 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2919.6700 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 NNTP-Posting-Host: 203.115.76.227 Message-ID: <3f502081$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1062215809 203.115.76.227 (29 Aug 2003 20:56:49 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-05!sn-xit-09!supernews.com!news.maxwell.syr.edu!small1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail