Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

username

Posted on 2002-07-21
4
Medium Priority
?
225 Views
Last Modified: 2010-04-04
how can i get my icq username with delphi code?

please help

can post more points if necessary
0
Comment
Question by:penfold69
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 5

Expert Comment

by:alanwhincup
ID: 7168458
You could do it like this: Unsure if it works with all versions of ICQ though:

Just drop a TButton and TMemo on a form and then add the below code to the TButton's OnClick event. Also don't forget to add 'Registry' to the uses clause of the unit.

procedure TForm1.Button1Click(Sender: TObject);
var
  Reg : TRegistry;
  UINS : TStringList;
  I : Integer;
begin
  Memo1.Clear;
  UINS := TStringList.Create;
  Reg := TRegistry.Create;
  with Reg do
  begin
    try
      RootKey := HKEY_LOCAL_MACHINE;
      OpenKey('Software\Mirabilis\ICQ\Owners', False);
      GetKeyNames(UINS);
      for I := 0 to UINS.Count - 1 do
      begin
        CloseKey;
        OpenKey('Software\Mirabilis\ICQ\Owners\' + UINS[I], False);
        Memo1.Lines.Add(UINS[I] + ': ' + ReadString('Name'));
      end;
      CloseKey;
    finally
      Free;
    end;
  end;
end;

Cheers,

Alan
0
 
LVL 5

Expert Comment

by:alanwhincup
ID: 7168461
Also another way you could do this is with the use of ICQ's API for developers: http://www.icq.com/api/
0
 

Author Comment

by:penfold69
ID: 7170582
does not work?

do u have any other code that can get details from ICQ ie

users on my contact list etc?

 
0
 
LVL 5

Accepted Solution

by:
alanwhincup earned 1200 total points
ID: 7170680
I would just download and use the ICQ API from the link I gave you before. When you download it you'll probably notice that the examples to interface with the DLL are in C++ but you can get teh converted header files from http://www.delphi-jedi.org/Jedi:APILIBRARY:11273 . It's listed as Interface for ICQ.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses

722 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question