Article View: borland.public.cppbuilder.internet.socket
Article #1661TClientSocket in consolle applications
From: Stefano Bonifazi
Date: Sat, 23 Dec 2006 14:37
Date: Sat, 23 Dec 2006 14:37
21 lines
1806 bytes
1806 bytes
Hello everybody! I need to wrap some basic functionality of TClientSocket inside a dll for reusing it in a not borland console application. The dll is developed with BCB6, so I can include there all the VCL code I like! Inside the dll I created 3 basic function: -the first simply create an instance of TClientSocket and connetc it to the remote server I need. -the second uses the Socket->SendText function for delivering strings to the server it is connected to -the third simply disconnect the client and destroy the TClientSocket instance If I load the dll dinamically from a VCL application all works fine, I can connect my client to the server, send that my texts and then disconnect form it! 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? Thank U very much in advance! Stefano B.
Technical Details
Message-ID:
<458d3f0d@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news4.google.com!news.glorb.com!news2.volia.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 11508e,dab0ff5b2d1109,start X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Sat, 23 Dec 2006 15:37:08 +0100 From: Stefano Bonifazi <stefboombastic@email.it> User-Agent: Thunderbird 1.5.0.8 (Windows/20061025) MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.internet.socket Subject: TClientSocket in consolle applications Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 80.104.235.147 Message-ID: <458d3f0d@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1166884621 80.104.235.147 (23 Dec 2006 06:37:01 -0800) Lines: 21 Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news4.google.com!news.glorb.com!news2.volia.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail