• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 220
  • Last Modified:

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...
0
Wim ten Brink
Asked:
Wim ten Brink
  • 3
  • 3
1 Solution
 
MerijnBSr. Software EngineerCommented:
very wild idea: can't you send the rigth keystrokes into delphi and thus automating the process?
0
 
Wim ten BrinkAuthor Commented:
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. :-)
0
 
MerijnBSr. Software EngineerCommented:
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 :)
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
Wim ten BrinkAuthor Commented:
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...
0
 
ziolkoCommented:
maybe create your own app to generate .pas files?

ziolko.
0
 
MerijnBSr. Software EngineerCommented:
there is an tlibimp.exe in your $delphidir\bin directory, maybe you can use that?
0
 
Wim ten BrinkAuthor Commented:
MerijnB, EXACTLY what I was looking for! :-) Perfect answer.
0

Featured Post

Upgrade your Question Security!

Add Premium security features to your question to ensure its privacy or anonymity. Learn more about your ability to control Question Security today.

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now