Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Use OCX without registering it

Posted on 2003-11-20
8
Medium Priority
?
725 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
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
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 460 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: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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

Having just graduated from college and entered the workforce, I don’t find myself always using the tools and programs I grew accustomed to over the past four years. However, there is one program I continually find myself reverting back to…R.   So …
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

721 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