Link to home
Start Free TrialLog in
Avatar of koollkidd
koollkiddFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Use OCX without registering it

Hi, i have seen programs that have been created that allow programmers to use an ocx control without needing to have it registered. I was wondering if it is possible to do this in visual basic so that i can use the MSWINSCK.OCX control without having to register it. The method other people use is binding it with the exe. I would really like to know if this can be done. Thanks.
Avatar of vinnyd79
vinnyd79

It should work without registering if you copy mswinsck.ocx in the users system directory.
For Win9.x that would be the System directory.For other OS it should be System32. You could also try putting the ocx in the same path as your app.As far as binding to the exe,you could add the ocx to a resource file,and extract it from the exe at runtime if it does not exist in the users system directory.
Avatar of koollkidd

ASKER

The problem is, i dont have write acces to the machine the program will be running on as it will be running on the user profiles not the admin ones. I have found a program that will do what i need called thinstall (http://www.thinstall.com) but this has a splash screen put onto every exe made with the demo. I need to know if the same thing can be done in VB alone or another freeware program. Having the OCX seperate will not work.
Try Inno Setup.

http://www.jrsoftware.org/isinfo.php

Just include the ocx in the setup file.
This is a setup program though. The winsock control will have to be coppied to the system directory (which cannot be done) and registered. I can do this already, i need the ocx to load at run-time without having to be copied anywhere or registered. Like Thinstall does.
Why not just get rid of the winsock control and use Winsock API?
do you know of a good place i can learn how to use the winsock API? I have my program written using the ocx... will it be hard to convert it to the API?..thanks
ASKER CERTIFIED SOLUTION
Avatar of vinnyd79
vinnyd79

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
i'll try to convert it...thanks for the link anyway..that'll come in handy....cheers.