Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. sponsors. rss.
 From: Anil Sharma
  Where is Anil Sharma?
 ludhiana
 India
 Anil Sharma
 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: 200266 # Views: 28 # Ratings: 0
Version: Visual FoxPro 8 Category: Active X Controls & OLE Automation
Date: Monday, October 27, 2008 7:48:40 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
Try this

LOCAL loBarCode,loError
TRY
    loBarCode = Createobject('idauto.barcode')
CATCH TO loError


ENDTRY

IF VARTYPE(loError) = 'O'
DECLARE LONG DllRegisterServer IN c:\folder\yourdllorocxofBarcode.dll 
ENDIF




Anil
My Blog



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