🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.socket
Article #1669

Re: TClientSocket in consolle applications

#1669
From: Bob Gonder
Date: Sat, 23 Dec 2006 17:05
14 lines
1637 bytes
Stefano Bonifazi wrote:

>If I load the dll dinamically from a consolle application only Connect 
>works! I may think that there is something related to Windows messages, 
>how can I make it work even with consolle applications?

You might be able to have your connect function spawn a new thread to
pump messages (create a hidden window to receive messages). The
disconnect function could then send a private message for the thread
to terminate (WM_CLOSE the hidden window).

Or set it up to work in blocking mode.

Or maybe you don't have vcl and bpl dlls available for the console?
Technical Details
Message-ID: <rklqo2pjrnk6arfk43f665lq65djkr55vq@4ax.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news3.google.com!news.glorb.com!tudelft.nl!txtfeed1.tudelft.nl!feeder.news-service.com!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <458d3f0d@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,dab0ff5b2d1109
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: Bob Gonder <notbg@notmindspring.invalid>
Newsgroups: borland.public.cppbuilder.internet.socket
Subject: Re: TClientSocket in consolle applications
Date: Sat, 23 Dec 2006 09:05:04 -0800
Organization: MindSpring Enterprises, Inc.
Reply-To: notbg@notmindspring.invalid
Message-ID: <rklqo2pjrnk6arfk43f665lq65djkr55vq@4ax.com>
References: <458d3f0d@newsgroups.borland.com>
X-Newsreader: Forte Agent 1.93/32.576 English (American)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 71.0.35.145
X-Trace: newsgroups.borland.com 1166893484 71.0.35.145 (23 Dec 2006 09:04:44 -0800)
Lines: 16
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news3.google.com!news.glorb.com!tudelft.nl!txtfeed1.tudelft.nl!feeder.news-service.com!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail