🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: NamedPipe problem

#3139
From: T. Meyer
Date: Fri, 18 Aug 2006 08:05
25 lines
1738 bytes
Hello Gambit,

I found out more:

even if I use now the WriteFile function in overlapped mode (replace NULL by 
&OL) I get an 'the handle is invalid'.
And if I set the &OL to NULL in my ReadFile it also works, so it seems has 
to do something with my OL struct?
So is there someting wrong with my OVERLAPPED structure?

Under Unit1.h I declare it as: OVERLAPPED OL;

and in my Unit1.cpp constructor:

  PipeEvt = new TEvent(NULL, true, false, NULL);

  OL.Internal = 0;
  OL.InternalHigh = 0;
  OL.Offset = 0;
  OL.OffsetHigh = 0;
  OL.hEvent = PipeEvt;

Any ideas?

Thanks! 
Technical Details
Message-ID: <44e574e8@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news.glorb.com!newsgate.cistron.nl!xs4all!feeder1.cambrium.nl!feed.tweaknews.nl!news2.euro.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <44e47a8e$1@newsgroups.borland.com> <44e4a098$1@newsgroups.borland.com> <44e4affa@newsgroups.borland.com> <44e4c819@newsgroups.borland.com> <44e56623$1@newsgroups.borland.com> <44e56eb5$2@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,facc6570cb7e9402
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "T. Meyer" <timon@mustek.de>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <44e47a8e$1@newsgroups.borland.com> <44e4a098$1@newsgroups.borland.com> <44e4affa@newsgroups.borland.com> <44e4c819@newsgroups.borland.com> <44e56623$1@newsgroups.borland.com> <44e56eb5$2@newsgroups.borland.com>
Subject: Re: NamedPipe problem
Date: Fri, 18 Aug 2006 10:05:58 +0200
Lines: 27
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2670
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 80.132.166.197
Message-ID: <44e574e8@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1155888360 80.132.166.197 (18 Aug 2006 01:06:00 -0700)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news.glorb.com!newsgate.cistron.nl!xs4all!feeder1.cambrium.nl!feed.tweaknews.nl!news2.euro.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail