Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. sponsors. rss.
 From: tushar
  Where is tushar?
 Panaji
 India
 tushar
 To: M. Akram Bhatti
  Where is M. Akram Bhatti?
 Riyadh
 Saudi Arabia
 M. Akram Bhatti
 Tags
Subject: RE: ActiveX / DLL Registration
Thread ID: 200262 Message ID: 200265 # Views: 38 # Ratings: 1
Version: Visual FoxPro 8 Category: Active X Controls & OLE Automation
Date: Monday, October 27, 2008 7:41:32 AM         
   


> Dear Experts,
>
> How can we know that a certain ActiveX / COM DLL is installed / registered in the pc.
>
> I want to make sure that ActiveX is registered before executing the following code:
>
>
APPEND GENERAL pobc CLASS ("idauto.barcode")

>
> Thanks
>
> Akram

You could try creating it in a TRY/CATCH
TRY
   loTest=CREATEOBJECT("idauto.barcode")
   llRegistered=.T.
CATCH
   llRegistered=.F.
ENDTRY
IF not llRegistered
   .....
ENDIF


It is generally advised not to use general fields. But since I don't know what idauto.barcode does, it is not possible to comment if a general field is the best way to go about it or not. If possible, try to find an alternative to the general field, otherwise always perform the above test before using it.

Regards
Tushar



COMPLETE THREAD
ActiveX / DLL Registration Posted by M. Akram Bhatti @ 10/27/2008 7:35:04 AM
RE: ActiveX / DLL Registration Posted by tushar @ 10/27/2008 7:41:32 AM
RE: ActiveX / DLL Registration Posted by M. Akram Bhatti @ 10/27/2008 8:03:19 AM
RE: ActiveX / DLL Registration Posted by Carlos Alloatti @ 10/27/2008 8:29:29 AM
RE: ActiveX / DLL Registration Posted by M. Akram Bhatti @ 10/27/2008 8:49:51 AM
RE: ActiveX / DLL Registration Posted by Anil Sharma @ 10/27/2008 7:48:40 AM
RE: ActiveX / DLL Registration Posted by Yousfi Benameur @ 10/27/2008 12:57:14 PM
RE: ActiveX / DLL Registration Posted by Samir Ibrahim @ 10/27/2008 2:44:04 PM