Menu

Using TICQClient in a console app

Help
2005-10-29
2013-03-22
  • Nathan Kane

    Nathan Kane - 2005-10-29

    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

     
    • Mucha

      Mucha - 2006-08-09

      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.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.