Solved

Use OCX without registering it

Posted on 2003-11-20
8
707 Views
Last Modified: 2013-11-13
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.
0
Comment
Question by:koollkidd
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 4
8 Comments
 
LVL 28

Expert Comment

by:vinnyd79
ID: 9791985
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.
0
 
LVL 1

Author Comment

by:koollkidd
ID: 9811577
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.
0
 
LVL 28

Expert Comment

by:vinnyd79
ID: 9811621
Try Inno Setup.

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

Just include the ocx in the setup file.
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 1

Author Comment

by:koollkidd
ID: 9812698
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.
0
 
LVL 28

Expert Comment

by:vinnyd79
ID: 9812888
Why not just get rid of the winsock control and use Winsock API?
0
 
LVL 1

Author Comment

by:koollkidd
ID: 9813622
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
0
 
LVL 28

Accepted Solution

by:
vinnyd79 earned 115 total points
ID: 9813703
vbip.com is a great site for learning to use Winsock API:

http://www.vbip.com/winsock-api/

Depending on how complex your app is,it could be difficult to convert.
0
 
LVL 1

Author Comment

by:koollkidd
ID: 9821033
i'll try to convert it...thanks for the link anyway..that'll come in handy....cheers.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question