Solved

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

Posted on 2013-12-23
9
526 Views
Last Modified: 2014-01-10
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...
0
Comment
Question by:Tom_Grills
  • 5
  • 2
9 Comments
 
LVL 27

Expert Comment

by:BigRat
ID: 39737903
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.
0
 

Author Comment

by:Tom_Grills
ID: 39738052
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...
0
 
LVL 27

Expert Comment

by:BigRat
ID: 39738064
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.
0
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 

Author Comment

by:Tom_Grills
ID: 39738093
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...
0
 

Author Comment

by:Tom_Grills
ID: 39746382
Anyone?
0
 

Accepted Solution

by:
Tom_Grills earned 0 total points
ID: 39757632
I have found the solution to my issue...

I made sure that all of the already compiled DLLs on my source code drive were manually re-registered, then went back to the source for each ActiveX DLL I had written and delted all dcu files...  Once done, I was able to edit the typelib on the source drive and from there recompile and register the DLLs.
0
 

Author Closing Comment

by:Tom_Grills
ID: 39770554
See comment...
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Does the idea of dealing with bits scare or confuse you? Does it seem like a waste of time in an age where we all have terabytes of storage? If so, you're missing out on one of the core tools in every professional programmer's toolbox. Learn how to …
A short article about problems I had with the new location API and permissions in Marshmallow
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.

743 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

11 Experts available now in Live!

Get 1:1 Help Now