Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Declare ActiveX by command's problem

Status
Not open for further replies.

astonmak

MIS
Feb 14, 2003
41
0
0
CN
Hi all,

I got the following command to register the ActiveX obj into my application :

Public Declare Function RegStatusBarOBJ Lib "StatusBarOBJ.ocx" Alias "DllRegisterServer" () As Long
Public Declare Function unRegStatusBarOBJ Lib "StatusBarOBJ.ocx" Alias "DllUnRegisterServer" () As Long

1. where is the application first start to search for "StatusBarOBJ" this file?

2. This ActiveX object is using for 2 application development, everytime after I made the changes to the ActiveX object for No1 appliaction, then I will copy the file "StatusBarOBJ.ocx" to No2 application's root directory and allow it to access the latest version. And in order to keep the ActiveX which they using are up to date, these 2 application having a code to unregister and then register their ActiveX object every time when the application is run. But the problem is everytime I open/run the No2 application project and it says there is the ActiveX version problem.

Anyone can tell me what's wrong I did ?

Thanks
Aston
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top