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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Download my .ocx and 2 depending dll’s?

Status
Not open for further replies.

d00ape

Programmer
Apr 2, 2003
171
SE
Hi,
I’m developing an ActiveX-control in VS C++ 6.0 (WinXP): works fine.
For deployment, I’m using VS.NET for making the Cab-file (New project: Cab
Project). Adds ocx and builds Cab: works fine.

Problem: The .ocx is depending on 2 other dlls, as it is now they are downloaded and registered manually: this works some times, some times it is "Dll Hell".... "Dll hell" occurs when updating ocx and dlls.... is there any way to force registration and so on? My belive is that it will work fine if I just adds the dll to the Cab File-project, could that be right? If so, how do I do it in VS.NET (I know how to add the files, but it’s not working when adding the depending dlls)?

I’m also a bit confused of the making of the Cab File, with VS.NET (Cab Project, OSD-file) it’s easy, but I don’t know what I’m doing... old tech, with INF-file, it was harder, but more open I guess?

Which is the best solution in my case?
 
you can add some windows script files and execute them when starting instalation. You can use for example JScript and make filex with extension .js:

//clan.js
//clean/unregister dll's before installing or uninstall
var shell = new ActiveXObject("WScript.Shell");
shell.Exec("regsvr32 /u /s YourDll.dll");

//isntall.js
//register dll's
var shell = new ActiveXObject("WScript.Shell");
shell.Exec("regsvr32 /s YourDll.dll");


Ion Filipski
1c.bmp
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top