Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I recompile an OCX?

Status
Not open for further replies.

snowcold

Programmer
Dec 15, 2004
107
US
Are you ready for a silly question?

I've received an OCX (with the code) from the developer. I usually debug the app if we have issues in order to troubleshoot...but now I am being instructed to recompile the OCX.

How do I do that in VB 6.0?

Thanks!!!
 
See thread222-93508.

And you should also search the forum using the keywords "compile ocx" to help you deal with issues related to old versions, registering/unregistering the contol.
 
Broken link.

Doing a search but to no luck yet.
I'll keep everyone posted.
 
You also need to find out if you need to keep binary compatability (if you haven't already broken any interfaces) and read up on that as well.
 
I'm not sure I understand your question. Have you been given the .ctl file, or have you been given the .vbp file will all the related programs? I'm getting the feeling that you've been instructed to recompile everything because there's some screwball thing wrong with the project, and the easiest way to fix it is drop all the code in a new project. If that's what you're trying to do, post back and I'll give you some pointers.

Bob
 
I think they mean that the link in the referenced thread is broekn
 
to BobRodes..
That is exactly what happened...I was given the .vbp and all related files..

thanks
 
Ok. To recompile, simply open the vbp file. You will probably find that you get warning messages about how you can't find various files that the program needs. If you do, continue loading anyway when it asks you. Then, go in and manually add your code files (go to the project explorer, right click on the name of your project, select Add, and add each code file into your project). Once you're done, save. After this, just go to the File menu, and about 2/3 of the way down, you'll see a "make FileName.ocx", where FileName is the name of your control.

Now, this assumes a few things. If it doesn't work, post back again and we'll strip out a few more things.

HTH

Bob
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top