I'm trying to use the icq client within a console apllication, but login fails (without returning an error)
Client := TICQClient.Create(nil); Client.ICQServer := 'login.icq.com'; Client.ICQPort := 5190; Client.PortRangeFirst := 3000; Client.PortRangeLast := 50000; Client.ConvertToPlaintext := false; Client.ConnectionTimeout := 0;
Client.UIN := 000000; //censored Client.Password := '***********'; //censored Client.Login(); while (not exit) do begin writeln (BoolToStr(Client.LoggedIn)); writeln (Client.LastError); readln; end;
using this code within a standard application with winforms works fine, why doesn't it work with a console?
Regards
I have the same problem with DLL. If on the form, works perfect, but when I put this form into DLL it stops working.
Log in to post a comment.
I'm trying to use the icq client within a console apllication, but login fails (without returning an error)
Client := TICQClient.Create(nil);
Client.ICQServer := 'login.icq.com';
Client.ICQPort := 5190;
Client.PortRangeFirst := 3000;
Client.PortRangeLast := 50000;
Client.ConvertToPlaintext := false;
Client.ConnectionTimeout := 0;
Client.UIN := 000000; //censored
Client.Password := '***********'; //censored
Client.Login();
while (not exit) do begin
writeln (BoolToStr(Client.LoggedIn));
writeln (Client.LastError);
readln;
end;
using this code within a standard application with winforms works fine, why doesn't it work with a console?
Regards
I have the same problem with DLL. If on the form, works perfect, but when I put this form into DLL it stops working.