<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Codeconvertierung ICQClient-Komponente Delphi -&amp;gt; CB6]]></title><description><![CDATA[<p>Hallo! Ich habe mir die Komponente ICQClient (für Delphi 5+) heruntergeladen und versuche diese nun mit dem CB6 zu verwenden. Der Login zum ICQ-Server, das senden von Nachrichten und sonstige Funktionen gehen einwendfrei. Nur mit dem Anfordern der Kontaktliste vom ICQ-Server habe ich einige Probleme.</p>
<p>In der Hilfe der Komponente ist es so beschrieben:</p>
<pre><code class="language-cpp">OnServerListRecv(Sender: TObject; SrvContactList: TList)

A response to RequestContactList procedure.
After using the SrvContactList you *must* call DestroyUINList procedure with SrvContactList as a parameter, required to free allocated data, otherwise you'll have memory leaks. Each SrvContactList is a pointer on a TUINEntry stucture (declared in ICQClient.pas). 

  TUINEntry = record
    UIN: LongWord;            //UIN in contact list
    Nick: ShortString;        //Nick of this UIN, can be null(empty)
    CType: Word;              //Type, can be U_NORMAL(Normal contact list entry), U_VISIBLE_LIST(user is in visible list)
                              //, U_INVISIBLE_LIST(user is in invisible list), U_IGNORE_LIST(user is in ignore list)
    CGroupID: Word;           //Group's ID user belongs to
    CTag: Word;               //ID of the user
    CGroup: ShortString;      //Group name, UIN belongs to
  end;

  Example:
  procedure TMainForm.ICQClient1ServerListRecv(Sender: TObject;
    SrvContactList: TList);
  var
    i: Word;
    UserInfo: TUINEntry;
  begin
     if SrvContactList.Count &gt; 0 then
       for i := 0 to SrvContactList.Count - 1 do
       begin
         UserInfo := PUINEntry(SrvContactList.Items[i])^;
         Memo1.Lines.Add(UserInfo.Nick + ' is in group ' + UserInfo.CGroup
           + ' and his uin is ' + IntToStr(UserInfo.UIN));
       end;
     ICQClient1.DestroyUINList(SrvContactList);
  end;
</code></pre>
<p>Ich habe das jetzt mal versuch in CB6 zu übersetzen.</p>
<pre><code class="language-cpp">void __fastcall TForm1::icqServerListRecv(TObject *Sender,
      TList *SrvContactList)
{
Memo1-&gt;Lines-&gt;Add(&quot;Kontaktliste anfordern...&quot;);

TUINEntry test;
 LongWord UIN;
}
</code></pre>
<p>Weiter bin ich leider noch nicht gekommen <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--disappointed_face"
      title=":("
      alt="😞"
    /></p>
<p>Außedem kann ich der Komponente nicht die UIN zuweisen:</p>
<pre><code class="language-cpp">[C++ Error] Unit1.cpp(38): E2015 Ambiguity between '_fastcall Sysutils::StrToInt(const System::AnsiString)' and '_fastcall Icqworks::StrToInt(const System::AnsiString)'
</code></pre>
<p>Gibt es hier vielleicht Jemanden, der mir helfen kann? Wäre echt super!! Danke!!!</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/101211/codeconvertierung-icqclient-komponente-delphi-gt-cb6</link><generator>RSS for Node</generator><lastBuildDate>Mon, 13 Jul 2026 11:07:49 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/101211.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 14 Feb 2005 13:13:09 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Codeconvertierung ICQClient-Komponente Delphi -&amp;gt; CB6 on Mon, 14 Feb 2005 13:13:09 GMT]]></title><description><![CDATA[<p>Hallo! Ich habe mir die Komponente ICQClient (für Delphi 5+) heruntergeladen und versuche diese nun mit dem CB6 zu verwenden. Der Login zum ICQ-Server, das senden von Nachrichten und sonstige Funktionen gehen einwendfrei. Nur mit dem Anfordern der Kontaktliste vom ICQ-Server habe ich einige Probleme.</p>
<p>In der Hilfe der Komponente ist es so beschrieben:</p>
<pre><code class="language-cpp">OnServerListRecv(Sender: TObject; SrvContactList: TList)

A response to RequestContactList procedure.
After using the SrvContactList you *must* call DestroyUINList procedure with SrvContactList as a parameter, required to free allocated data, otherwise you'll have memory leaks. Each SrvContactList is a pointer on a TUINEntry stucture (declared in ICQClient.pas). 

  TUINEntry = record
    UIN: LongWord;            //UIN in contact list
    Nick: ShortString;        //Nick of this UIN, can be null(empty)
    CType: Word;              //Type, can be U_NORMAL(Normal contact list entry), U_VISIBLE_LIST(user is in visible list)
                              //, U_INVISIBLE_LIST(user is in invisible list), U_IGNORE_LIST(user is in ignore list)
    CGroupID: Word;           //Group's ID user belongs to
    CTag: Word;               //ID of the user
    CGroup: ShortString;      //Group name, UIN belongs to
  end;

  Example:
  procedure TMainForm.ICQClient1ServerListRecv(Sender: TObject;
    SrvContactList: TList);
  var
    i: Word;
    UserInfo: TUINEntry;
  begin
     if SrvContactList.Count &gt; 0 then
       for i := 0 to SrvContactList.Count - 1 do
       begin
         UserInfo := PUINEntry(SrvContactList.Items[i])^;
         Memo1.Lines.Add(UserInfo.Nick + ' is in group ' + UserInfo.CGroup
           + ' and his uin is ' + IntToStr(UserInfo.UIN));
       end;
     ICQClient1.DestroyUINList(SrvContactList);
  end;
</code></pre>
<p>Ich habe das jetzt mal versuch in CB6 zu übersetzen.</p>
<pre><code class="language-cpp">void __fastcall TForm1::icqServerListRecv(TObject *Sender,
      TList *SrvContactList)
{
Memo1-&gt;Lines-&gt;Add(&quot;Kontaktliste anfordern...&quot;);

TUINEntry test;
 LongWord UIN;
}
</code></pre>
<p>Weiter bin ich leider noch nicht gekommen <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--disappointed_face"
      title=":("
      alt="😞"
    /></p>
<p>Außedem kann ich der Komponente nicht die UIN zuweisen:</p>
<pre><code class="language-cpp">[C++ Error] Unit1.cpp(38): E2015 Ambiguity between '_fastcall Sysutils::StrToInt(const System::AnsiString)' and '_fastcall Icqworks::StrToInt(const System::AnsiString)'
</code></pre>
<p>Gibt es hier vielleicht Jemanden, der mir helfen kann? Wäre echt super!! Danke!!!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/722983</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/722983</guid><dc:creator><![CDATA[Marcus01]]></dc:creator><pubDate>Mon, 14 Feb 2005 13:13:09 GMT</pubDate></item><item><title><![CDATA[Reply to Codeconvertierung ICQClient-Komponente Delphi -&amp;gt; CB6 on Mon, 14 Feb 2005 13:38:06 GMT]]></title><description><![CDATA[<p>Also &quot;Count&quot; der Kontaktliste kann ich abfragen aber wie die Einträge??</p>
<pre><code class="language-cpp">ListBox1-&gt;Items-&gt;Add(SrvContactList-&gt;Count);
</code></pre>
<p>Raus kommt &quot;17&quot;</p>
<pre><code class="language-cpp">ListBox1-&gt;Items-&gt;Add(SrvContactList-&gt;Items[0]);
</code></pre>
<p>da meint er:</p>
<pre><code class="language-cpp">[C++ Error] Unit1.cpp(36): E2034 Cannot convert 'void *' to 'AnsiString'
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/723006</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/723006</guid><dc:creator><![CDATA[Marcus01]]></dc:creator><pubDate>Mon, 14 Feb 2005 13:38:06 GMT</pubDate></item><item><title><![CDATA[Reply to Codeconvertierung ICQClient-Komponente Delphi -&amp;gt; CB6 on Mon, 14 Feb 2005 13:52:05 GMT]]></title><description><![CDATA[<p>Warum willst du es auch in AnsiString konvertieren? Glaubst du nicht, dass du da nen zwischenschritt vergessen hast?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/723019</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/723019</guid><dc:creator><![CDATA[HEZ]]></dc:creator><pubDate>Mon, 14 Feb 2005 13:52:05 GMT</pubDate></item><item><title><![CDATA[Reply to Codeconvertierung ICQClient-Komponente Delphi -&amp;gt; CB6 on Mon, 14 Feb 2005 13:56:54 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">UserInfo := PUINEntry(SrvContactList.Items[i])^;
</code></pre>
<p>Hier geht es ja auch, nur weiß ich nicht wie ich</p>
<pre><code class="language-cpp">UserInfo := PUINEntry
</code></pre>
<p>auf den Builder übertragen kann.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/723022</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/723022</guid><dc:creator><![CDATA[Marcus01]]></dc:creator><pubDate>Mon, 14 Feb 2005 13:56:54 GMT</pubDate></item><item><title><![CDATA[Reply to Codeconvertierung ICQClient-Komponente Delphi -&amp;gt; CB6 on Mon, 14 Feb 2005 14:02:30 GMT]]></title><description><![CDATA[<p>Auf diese Idee</p>
<pre><code class="language-cpp">UserInfo = PUINEntry(SrvContactList.Items[i]);
</code></pre>
<p>bist du wahrscheinlich schon selbst gekommen... was kommt denn da für ne Meldung?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/723029</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/723029</guid><dc:creator><![CDATA[HEZ]]></dc:creator><pubDate>Mon, 14 Feb 2005 14:02:30 GMT</pubDate></item><item><title><![CDATA[Reply to Codeconvertierung ICQClient-Komponente Delphi -&amp;gt; CB6 on Mon, 14 Feb 2005 14:05:46 GMT]]></title><description><![CDATA[<p>Da kommt</p>
<pre><code class="language-cpp">E2451 Undefined symbol 'UserInfo'
E2294 Structure required on left side of . or .*
</code></pre>
<p>Das heißt ich muss &quot;UserInfo&quot; deklarieren aber wie??</p>
<p>Vielleicht mit</p>
<pre><code class="language-cpp">PUINEntry UserInfo;
</code></pre>
<p>das funktioniert, aber wie dann weiter?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/723031</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/723031</guid><dc:creator><![CDATA[Marcus01]]></dc:creator><pubDate>Mon, 14 Feb 2005 14:05:46 GMT</pubDate></item><item><title><![CDATA[Reply to Codeconvertierung ICQClient-Komponente Delphi -&amp;gt; CB6 on Mon, 14 Feb 2005 14:09:16 GMT]]></title><description><![CDATA[<p>Na wohl eher</p>
<pre><code class="language-cpp">TUINEntry
</code></pre>
<p>Und dann halt</p>
<pre><code class="language-cpp">UserInfo = PUINEntry(SrvContactList-&gt;Items[i]);
</code></pre>
<p>Schon ein wenig scheiße, dass du der einzige bist, der das teste kann... <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/723033</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/723033</guid><dc:creator><![CDATA[HEZ]]></dc:creator><pubDate>Mon, 14 Feb 2005 14:09:16 GMT</pubDate></item><item><title><![CDATA[Reply to Codeconvertierung ICQClient-Komponente Delphi -&amp;gt; CB6 on Mon, 14 Feb 2005 14:14:04 GMT]]></title><description><![CDATA[<p>Das geht leider auch nicht!</p>
<p>Scheiss Delphi ^^</p>
<p>Hier der Link zur Komponente: (ist ganz einfach zu bedienen nur halt dieses dumme anfordern der ContactList) <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
<p><a href="http://prdownloads.sourceforge.net/ticqlib/icq_20040630.zip?download" rel="nofollow">http://prdownloads.sourceforge.net/ticqlib/icq_20040630.zip?download</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/723038</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/723038</guid><dc:creator><![CDATA[Marcus01]]></dc:creator><pubDate>Mon, 14 Feb 2005 14:14:04 GMT</pubDate></item><item><title><![CDATA[Reply to Codeconvertierung ICQClient-Komponente Delphi -&amp;gt; CB6 on Mon, 14 Feb 2005 14:18:03 GMT]]></title><description><![CDATA[<p>Wenn ichs so mache kommt nur noch der Fehler:</p>
<pre><code class="language-cpp">TUINEntry UserInfo = PUINEntry(SrvContactList-&gt;Items[0]);
</code></pre>
<pre><code class="language-cpp">E2034 Cannot convert 'TUINEntry *' to 'TUINEntry'
</code></pre>
<p>Also ihrgendwie muss das schon stimmen hmm...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/723043</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/723043</guid><dc:creator><![CDATA[Marcus01]]></dc:creator><pubDate>Mon, 14 Feb 2005 14:18:03 GMT</pubDate></item><item><title><![CDATA[Reply to Codeconvertierung ICQClient-Komponente Delphi -&amp;gt; CB6 on Mon, 14 Feb 2005 14:23:18 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">TUINEntry UserInfo;

UserInfo = PUINEntry (SrvContactList-&gt;Items[0]);
</code></pre>
<p>so gehts auch net und andersrum auch net... verstehe das nicht kennt sich denn hier keine mit Delphi aus?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/723047</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/723047</guid><dc:creator><![CDATA[Marcus01]]></dc:creator><pubDate>Mon, 14 Feb 2005 14:23:18 GMT</pubDate></item><item><title><![CDATA[Reply to Codeconvertierung ICQClient-Komponente Delphi -&amp;gt; CB6 on Mon, 14 Feb 2005 15:07:50 GMT]]></title><description><![CDATA[<p>Nun, das hat nicht unbedingt was mit delphi zu tun. Der dämliche Programmierstil ist halt ... dämlich.</p>
<pre><code class="language-cpp">TUINEntry *UserInfo;
</code></pre>
<p>Probier mal.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/723083</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/723083</guid><dc:creator><![CDATA[HEZ]]></dc:creator><pubDate>Mon, 14 Feb 2005 15:07:50 GMT</pubDate></item><item><title><![CDATA[Reply to Codeconvertierung ICQClient-Komponente Delphi -&amp;gt; CB6 on Mon, 14 Feb 2005 15:19:23 GMT]]></title><description><![CDATA[<p>DANKSCHÖN!! DU BIST DER KING ^^<br />
FUNKTIONIERT EINWANDFREI <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /> :</p>
<pre><code class="language-cpp">TUINEntry *UserInfo;
int clcount = SrvContactList-&gt;Count;
int i = 0;

while (i &lt; clcount)
{
UserInfo = PUINEntry (SrvContactList-&gt;Items[i]);
ListBox1-&gt;Items-&gt;Add(UserInfo-&gt;Nick);
i++;
}
</code></pre>
<p>Aber ich kann immernoch nicht</p>
<pre><code class="language-cpp">StrToInt
</code></pre>
<p>verwenden <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--disappointed_face"
      title=":("
      alt="😞"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/723098</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/723098</guid><dc:creator><![CDATA[Marcus01]]></dc:creator><pubDate>Mon, 14 Feb 2005 15:19:23 GMT</pubDate></item><item><title><![CDATA[Reply to Codeconvertierung ICQClient-Komponente Delphi -&amp;gt; CB6 on Mon, 14 Feb 2005 15:40:50 GMT]]></title><description><![CDATA[<p>Der Compiler findet zwei Versionen von StrToInt und weiß nicht welche er verwenden soll. Du mußt den Namespace vor die Funktion stellen. z.B. Systutils::StrToInt(...).</p>
]]></description><link>https://www.c-plusplus.net/forum/post/723122</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/723122</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Mon, 14 Feb 2005 15:40:50 GMT</pubDate></item><item><title><![CDATA[Reply to Codeconvertierung ICQClient-Komponente Delphi -&amp;gt; CB6 on Mon, 14 Feb 2005 15:44:04 GMT]]></title><description><![CDATA[<p>Ah ja genau danke!!! Wusste das es zwei funktionen gab aber wie ich das lösen kann &quot;wusste&quot; ich nicht! DANKE! ^^</p>
]]></description><link>https://www.c-plusplus.net/forum/post/723125</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/723125</guid><dc:creator><![CDATA[Marcus01]]></dc:creator><pubDate>Mon, 14 Feb 2005 15:44:04 GMT</pubDate></item><item><title><![CDATA[Reply to Codeconvertierung ICQClient-Komponente Delphi -&amp;gt; CB6 on Mon, 14 Feb 2005 15:57:44 GMT]]></title><description><![CDATA[<p>Was denn, ich bin kein King?? Den Unterschied zwischen Objekt und Zeiger hätte ich auch gewußt... <sup>grummel</sup> <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/723139</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/723139</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Mon, 14 Feb 2005 15:57:44 GMT</pubDate></item><item><title><![CDATA[Reply to Codeconvertierung ICQClient-Komponente Delphi -&amp;gt; CB6 on Tue, 15 Feb 2005 07:45:34 GMT]]></title><description><![CDATA[<p>Doch, du auch <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /> !<br />
Ja aber das ist so dumm gemacht finde ich... außerdem in Delphi ^^</p>
]]></description><link>https://www.c-plusplus.net/forum/post/723606</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/723606</guid><dc:creator><![CDATA[Marcus01]]></dc:creator><pubDate>Tue, 15 Feb 2005 07:45:34 GMT</pubDate></item><item><title><![CDATA[Reply to Codeconvertierung ICQClient-Komponente Delphi -&amp;gt; CB6 on Tue, 15 Feb 2005 08:15:28 GMT]]></title><description><![CDATA[<p>wäre es denn nicht einfacher die kompo direkt so zu verwenden, anstatt sie erst umständlich in den bcb zu konvertieren?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/723621</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/723621</guid><dc:creator><![CDATA[Sunday]]></dc:creator><pubDate>Tue, 15 Feb 2005 08:15:28 GMT</pubDate></item></channel></rss>