Link to home
Create AccountLog in
Avatar of kevin33809
kevin33809Flag for United States of America

asked on

How do I rename an ocx or dll file in VB6?

Because of (home-made) shared component clashes between different existing company applications which also use them, I've been assigned the duty of renaming six ocx and dll files for this one application project I maintain.  The goal being to isolate these (renamed) shared components exclusively to my project use, and no other.  Question:  Since I've never done this before, how can this be done without to much obstuction to my application to much?  What am I getting into?
Avatar of Dana Seaman
Dana Seaman
Flag of Brazil image

This process is easier if you have a group file that will load your project and components at the same time.
To isolate OCX/DLL you should load and rename each of the components, set Binary Compatibility = None for the component and recompile each OCX/DLL. This will generate a new GUID. Turn Binary compatibility back on and recompile again. Do this for each component

If you don't have a group file you can still use the above procedure but now you will have to open your project, delete the old OCX and add the new one from ToolBox. Another method is to modify the project to use the new components using this utility: http://www.10tec.com/home/Products/DevTools/OCXUpdater/index.aspx 


Application-1-.gif
Avatar of kevin33809

ASKER

I do have a sub-project called CLLG.OCX.  I was thinking that all I had to do was change the name in Properties to FRCLLG.OCX, and this would be the first part.  The second part would be to change the project name to FRCLLG.VBJ.  I'm not changing any code or wasn't intending to, just filenames.  From here, I would add the sub-project into the main project and recompile.  I'm I making this too simple, and going down the wrong path???
ASKER CERTIFIED SOLUTION
Avatar of Dana Seaman
Dana Seaman
Flag of Brazil image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer