RE: [twsocket] Assign event handler to manually created TStmpCli

2005-06-30 Thread Bjørnar Nielsen
ECTED] On Behalf Of Wilfried Mestdagh > Sent: 29. juni 2005 19:36 > To: ICS support mailing > Subject: Re: [twsocket] Assign event handler to manually > created TStmpCli > > Hello Patrick, > > > BTW, the mail can be sent out by ignoring the error. > Calling the exe

Re: [twsocket] Assign event handler to manually created TStmpCli

2005-06-29 Thread Wilfried Mestdagh
Hello Patrick, > BTW, the mail can be sent out by ignoring the error. Calling the > exe out of the IDE does not have error > at all. This is very strange. It looks to me a CBulder IDE bug. Can someone confirm this ? I have no CBuilder installed at the moment, but is there someone who can step t

[twsocket] Assign event handler to manually created TStmpCli

2005-06-29 Thread Patrick Wong
Thanks for your response, Wilfried > I'm not 100% sure, but I thought you dan step trough pascal units with > cbuilder. Try to delete the SmtpProt.obj and SmtpProt.dcu files (maybe > only one of them is there), check the debug options in IDE and rebuild > the project. I tried removing SmtpProt.o

Re: [twsocket] Assign event handler to manually created TStmpCli

2005-06-27 Thread Wilfried Mestdagh
Hello Patrick, > to see what goes wrong. However in the Pascal unit the "Watch" and > "Debug - Inspect" features of the C++ Builder IDE are not workable. I'm not 100% sure, but I thought you dan step trough pascal units with cbuilder. Try to delete the SmtpProt.obj and SmtpProt.dcu files (maybe

[twsocket] Assign event handler to manually created TStmpCli

2005-06-27 Thread Patrick Wong
> Message-based component are 100% OK in a console mode application. There are > a lot of console mode > samples delivered with ICS (at least written in Delphi). Start looking by the > most recent which are > always the best. I want to step into the SmtpProt.pas and trace the variables value to

Re: [twsocket] Assign event handler to manually created TStmpCli

2005-06-24 Thread Francois Piette
> I also note in the SmtpProt.pas there is a derived class TSyncSmtpCli. > Does this class support blocked operations which are not > message-based? Is there any example in using this derivative? TSyncSmtpCli is message based as are all other ICS component except icmp/ping. Message-based compon

Re: [twsocket] Assign event handler to manually created TStmpCli

2005-06-23 Thread Wilfried Mestdagh
Hello Patrick, TSyncSmtpCli is discouraged to use because it is very old and therefore not really supported anymore.Use TSmspCli instead. --- Rgds, Wilfried http://www.mestdagh.biz -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/lis

Re: [twsocket] Assign event handler to manually created TStmpCli

2005-06-23 Thread Arno Garrels
Patrick Wong wrote: > Thanks for your advice. > > Console program does not have message pump by default. I built a simple > function to peek messages in the following way: > > void __fastcall PumpMessages() > { > MSG Msg; > unsigned short TimeTick = 0; > > while(TimeTick < 50) > { >

[twsocket] Assign event handler to manually created TStmpCli

2005-06-23 Thread Patrick Wong
Thanks for your advice. Console program does not have message pump by default. I built a simple function to peek messages in the following way: void __fastcall PumpMessages() { MSG Msg; unsigned short TimeTick = 0; while(TimeTick < 50) { if(PeekMessage(&Msg, NULL, 0, 0, PM_REMOVE

Re: [twsocket] Assign event handler to manually created TStmpCli object

2005-06-21 Thread Francois Piette
twsocket] Assign event handler to manually created TStmpCli object > Dear all, > > I am writing a simple mail client in console application form. I manually > created a TSmtpCli object for my purpose. > > The problem is that after I call the SmtpClient->Connect() method, the c

[twsocket] Assign event handler to manually created TStmpCli object

2005-06-21 Thread Patrick Wong
Dear all, I am writing a simple mail client in console application form. I manually created a TSmtpCli object for my purpose. The problem is that after I call the SmtpClient->Connect() method, the client fails to connect to the SMTP server. I referenced the MailSnd example and did set SmtpCl