Avatar of Tom_Grills
Tom_Grills
 asked on

Trying to recreate custom ActiveX Libraries - Have the pas files but Delphi errors when loading the typelib

I recently experienced a crash of the drive that had my Delphi6 install.  I had cloned the drive earlier in the year and I re-cloned the old drive to get back up and running.   All of the software I have written that is not ActiveX will compile just fine.  When I try and open an ActiveX library project the IDE errors with the following:

Error loading Type library/DLL - which basically tells me that it can't find the typelib...

Now I have all of the pas files for these libraries (including the _TLB.pas files) and need to somehow re-establish the typelibs.

So, given a situation where you had all of the .pas files originally contained in the ActiveX Library but you are not able to load/edit the type library, what would be the best, most efficient method of recreating the type library from the source files available?

Thanks In Advance...
DelphiProgrammingProgramming Languages-Other

Avatar of undefined
Last Comment
Tom_Grills

8/22/2022 - Mon
BigRat

I only have Delphi 5. Are the type libraries still in the registy? Because it is from there (using the clsid) that the _TLB.pas files were generated.
Tom_Grills

ASKER
That's part of the problem I think...  The drive that is installed now is essentially one year behind the source code files on my other drive.  Whatever was in there does not include any changes made over the past year and some of the AX libraries did not exist then...  Is there a way to clear the typelibs and regenerate them somehow?

I simply want to be able to edit and compile them again...
BigRat

I've had this problem once with Delphi 5 and that was with MSXML objects. I had to regenerate the interface files again. That means the active X objects need to be installed in the registry.
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck
Tom_Grills

ASKER
But here's the thing, the Delphi install is fine...  It was solid, stable and working fine when I originally cloned the drive...   Any 3rd party COM objects will register and can be used in my code...   Even the already compiled DLLs for my objects will register and can be used..  I just can't get Delphi to load the typelibs into the IDE...  I have to assume that there is a mismatch between the registry and the source that is causing this...  It seems like some sort of broken link, that if repaired, would allow me to edit and re-compile my libraries...
Tom_Grills

ASKER
Anyone?
ASKER CERTIFIED SOLUTION
Tom_Grills

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Tom_Grills

ASKER
See comment...
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.