>Hi,
>
>I have a toolbar control (which I created many years ago) that displays the DBI Tech Listbar ActiveX. This toolbar is in a VCX library (e.g. main_toolbar in MyTools.vcx). When I open the Toolbar in the IDE (I think this is VFP standard toolbar), it has the DBI Tech Listbar. The application main.prg instantiates this toolbar. And I think, in turn, the toolbar instantiates the DBI Tech Listbar. The problem is that when a user does not have the DBI Tech Listbar registered, the following error occurs:
>
>"OLE error code 0x800040153 Class not registered"
>
>
>How can I change this so that I can catch the error with a Try/Catch? Because Try Catch around instantiating the VFP toolbar does not work. That is, the OLE Error happens first, and then Catch of the toolbar.
>
>TIA
Find out the CLSID of the control, and before instanciating it, go to the registry and confirm that it is registered, otherwise skip the instanciation.