Solved

Use OCX without registering it

Posted on 2003-11-20
8
690 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
  • 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
 
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
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Windows Script Host (WSH) has been part of Windows since Windows NT4. Windows Script Host provides architecture for building dynamic scripts that consist of a core object model, scripting hosts, and scripting engines. The key components of Window…
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.
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

747 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now