Solved

Use OCX without registering it

Posted on 2003-11-20
8
694 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Determine Range to Select 5 42
VBA Shell can't Find Word document 11 76
Modifying Conditional Format from VBA code 3 49
Excel file not created as expected 7 50
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
There is an easy way, in .NET, to centralize the treatment of all unexpected errors. First of all, instead of launching the application directly in a Form, you need first to write a Sub called Main, in a module. Then, set the Startup Object to th…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

895 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