[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] File streams on URL - clarification
- Subject: [ale] File streams on URL - clarification
- From: jknapka at charter.net (Joe Knapka)
- Date: Sun, 31 Oct 1999 23:11:21 -0500
My lord. It's amazing Windows programmers live
long enough to finish typing their code. Much
less debugging it...
-- Joe
Kalin Nakov wrote:
> Java:
> try {
> URL url = new URL("ftp://ftp.mysite.com/myfile.txt");
> InputStream input = url.openStream();
> }
> catch (Exception e) {
> }
>
> Win32 API:
> IMoniker *pmkrRemote = NULL;
> IBindCtx *pbctxBinder = NULL;
> IStream *pstmInput = NULL;
> CreateURLMoniker(NULL, L"ftp://ftp.mysite.com/myfile.txt", &pmkrRemote);
> CreateBindCtx(0, &pbctxBinder);
> pmkrRemote->BindToStorage(pbctxBinder, NULL, IID_IStream, (PVOID*)
> &pstmInput);
-- Joe Knapka
"I won't be havin' with that!" -- Granny Weatherwax