Check is Class is registered on the computer

Giganews Newsgroups
Subject: Check is Class is registered on the computer
Posted by:  Henrik Nedergaard
Date: Fri, 9 Jul 2010

Hi

How can I check if a COM class is registred on the computer before I start "creating" the objects?

I have a tlb that looks like this
  LIBID_ODLOGINMGRLib: TGUID = '{32AC4A83-B28A-4FAF-BF4D-1186FDA5C508}';

  IID_IODLoginHandler: TGUID = '{30904D78-A412-43A1-987E-EC8A8B302DD1}';
  IID_IODLoginHandler2: TGUID = '{738922AE-3AE7-4376-8B50-78DAD564119E}';
  IID_IODLoginHandlerHWND: TGUID = '{C7A58CFA-EA97-49B8-BEAB-90557331DD03}';
  IID_IODLoginMgr: TGUID = '{FE41F033-9884-422F-9A28-B1A5BACAEA6B}';
  IID_IODLoginMgr2: TGUID = '{2B80BA47-F605-4E30-A856-CD9A8161D627}';
  CLASS_ODLoginMgr: TGUID = '{A4132818-681A-48ED-B3DD-03D6CE060136}';
  CLASS_ODLoginHandlerHWND: TGUID = '{DD427356-8109-4244-BDA3-9CDAF66CEF44}';

I think a check if the LIBID_ODLOGINMGRLib is installed would be a good check.

regards

Replies