Link to home
Start Free TrialLog in
Avatar of Wim ten Brink
Wim ten BrinkFlag for Netherlands

asked on

Importing MANY type libraries...

Well, okay... I have a new computer and I've installed Delphi 2006 on it. The next step I want to take is using the type library import option to import ALL ActiveX controls on my new system to PAS files. (And without component wrappers!) And this is just taking me a lot of time. I have to open the dialog in the wizard, select the ActiveX control that I want to import, push the next buttons a few times and then click Finish to create and close the dialog again. And then I can start with the next item in the list.
Well, that's fine if you only need to import two or three type libraries but I've become mad and I want to import ALL (registered) type libraries on my system. And I haven't found a solution which allows me to do this quickly.

In the meantime I've already converted all type libraries starting with the letter A and B and am halfway C... This is just going too slow.

So the question is if Delphi 2006 has some (hidden) feature that allows me to import multiple type libraries... Something where I can click a button and then have Delphi generate the PAS files for me...
Avatar of MerijnB
MerijnB
Flag of Netherlands image

very wild idea: can't you send the rigth keystrokes into delphi and thus automating the process?
Avatar of Wim ten Brink

ASKER

Automating the action? I could do that but the problem is that I have to go through this list of ActiveX libraries selecting the next item every time. Unfortunately Delphi doesn't remember the one I previously selected and I also have to deal with possible error messages that might be generated. Besides, writing such a tool would take about as much time as doing it all manually. :-)
writing the tool would (in my opinion) not be that much work.

For selected the next item each time, send one more downarrow keystroke each time :)
True. One more down every time. And of course check for any error messages and wait for the import to complete. And possibly keep track of any other possible errors. But for some reason I feel there must be an easier solution for this...
maybe create your own app to generate .pas files?

ziolko.
ASKER CERTIFIED SOLUTION
Avatar of MerijnB
MerijnB
Flag of Netherlands image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
MerijnB, EXACTLY what I was looking for! :-) Perfect answer.