🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.delphi
Article #334659

Re: Przejęcie odwołania funkcji obsługi plików w DLL

#334659
From: marfi
Date: Tue, 10 Jan 2012 19:14
30 lines
1995 bytes
Użytkownik "xbary" <xbary@wp.pl> napisał w wiadomości 
news:75934d7e-dc45-4c01-a2ac-36a9e13814b9@i6g2000vbk.googlegroups.com...
...
>Problem polega na tym że ową bitmapę chciałbym wczytać z jakiegoś
>TStream lub bezpośrednio z pamięci... ???
...

Zależy jak biblioteka korzysta z pliku ale moze przełknie odczyt z "named 
pipe" czyli np. w wątku tworzysz i piszesz do pipe:

  hPipe:=CreateNamedPipe('\\.\pipe\mypipe',
        PIPE_ACCESS_OUTBOUND OR FILE_FLAG_WRITE_THROUGH,
        PIPE_TYPE_BYTE OR PIPE_WAIT,1,512,512,1000,nil);
 if hPipe...

  bRet:=ConnectNamedPipe(hPipe, nil);
  if bRet ...

  bRet := WriteFile(hPipe, buf, 512, WR, nil);

  if bRet ...

  CloseHandle(hPipe);


A do biblioteki przesyłasz nazwę pliku '\\.\pipe\mypipe'.


-- 
marfi
Technical Details
Message-ID: <4f0c8e2c$0$1465$65785112@news.neostrada.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!fu-berlin.de!postnews.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx02.iad01.newshosting.com!newshosting.com!newsfeed.neostrada.pl!unt-exc-01.news.neostrada.pl!unt-spo-a-02.news.neostrada.pl!news.neostrada.pl.POSTED!not-for-mail
References: <75934d7e-dc45-4c01-a2ac-36a9e13814b9@i6g2000vbk.googlegroups.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!fu-berlin.de!postnews.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx02.iad01.newshosting.com!newshosting.com!newsfeed.neostrada.pl!unt-exc-01.news.neostrada.pl!unt-spo-a-02.news.neostrada.pl!news.neostrada.pl.POSTED!not-for-mail
From: "marfi" <marfi @bb.onet.pl>
Newsgroups: pl.comp.lang.delphi
References: <75934d7e-dc45-4c01-a2ac-36a9e13814b9@i6g2000vbk.googlegroups.com>
In-Reply-To: <75934d7e-dc45-4c01-a2ac-36a9e13814b9@i6g2000vbk.googlegroups.com>
Subject: Re: Przejęcie odwołania funkcji
 obsługi plików w DLL
Date: Tue, 10 Jan 2012 20:14:46 +0100
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Windows Mail 6.0.6002.18197
X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6002.18463
Lines: 32
Message-ID: <4f0c8e2c$0$1465$65785112@news.neostrada.pl>
Organization: Telekomunikacja Polska
NNTP-Posting-Host: 83.10.16.105
X-Trace: 1326222893 unt-rea-a-01.news.neostrada.pl 1465 83.10.16.105:21030
X-Complaints-To: abuse@news.neostrada.pl
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit