Article View: borland.public.cppbuilder.internet.socket
Article #1529Re: TClientSocket in consolle applications
From: Stefano Bonifazi
Date: Sun, 24 Dec 2006 19:39
Date: Sun, 24 Dec 2006 19:39
27 lines
2334 bytes
2334 bytes
Hi again!And thank U for all Ur support!! > I took a random look at Chapter 3, sysmets1.c, and it has what appears > to be a fully functional WinMain and WinProc. > Strip the function and paramters off WinMain, and inject the naked > function into a thread I think that can be more easily done by the VCL AllocateHWnd(MyWndProc) > Adjust the case() statements in the WinProc to handle the messages > your TClient requires. I think that is the matter!! I only would like my TClientSocket to use the new messages pool I create, I don't want to sit to rewrite what it should do for every message it manages .. I even don't know them... I should study all the scktcomp to know those..and maybe than I should have access to some private method of TClientSocket ancestors :( I think there has to be an easier way to do! The way U proposed with TApplication worked, and the forms opened had their messages posted fine.. but then the application instance did not close.. and an exception was thrown when I unloaded the dll :( I thank U again.. and wish U Merry Christmas! Regards, Stefano B.
Technical Details
Message-ID:
<458ed76b@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news4.google.com!news.glorb.com!solnet.ch!solnet.ch!newsfeed.freenet.de!news.albasani.net!feeder06.uucp-net.de!reader.uucp.at!newsfeed.uucp.at!news.uucp.at!newsgroups.borland.com!not-for-mailReferences:
<458d3f0d@newsgroups.borland.com> <rklqo2pjrnk6arfk43f665lq65djkr55vq@4ax.com> <458d72cc@newsgroups.borland.com> <fv1ro296vpodms19ois98boakdgo5cd59r@4ax.com> <458e6fe3@newsgroups.borland.com> <d8jto297tbj4frodou41a9kjgn8fqhfmfj@4ax.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,dab0ff5b2d1109 X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Sun, 24 Dec 2006 20:39:43 +0100 From: Stefano Bonifazi <stefboombastic@email.it> User-Agent: Thunderbird 1.5.0.9 (Windows/20061207) MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.internet.socket Subject: Re: TClientSocket in consolle applications References: <458d3f0d@newsgroups.borland.com> <rklqo2pjrnk6arfk43f665lq65djkr55vq@4ax.com> <458d72cc@newsgroups.borland.com> <fv1ro296vpodms19ois98boakdgo5cd59r@4ax.com> <458e6fe3@newsgroups.borland.com> <d8jto297tbj4frodou41a9kjgn8fqhfmfj@4ax.com> In-Reply-To: <d8jto297tbj4frodou41a9kjgn8fqhfmfj@4ax.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 80.104.235.189 Message-ID: <458ed76b@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1166989163 80.104.235.189 (24 Dec 2006 11:39:23 -0800) Lines: 28 Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news4.google.com!news.glorb.com!solnet.ch!solnet.ch!newsfeed.freenet.de!news.albasani.net!feeder06.uucp-net.de!reader.uucp.at!newsfeed.uucp.at!news.uucp.at!newsgroups.borland.com!not-for-mail