Book a Demo

Author Topic: Import Type Library doesn't work - SOLVED -  (Read 8986 times)

ufechner

  • EA User
  • **
  • Posts: 85
  • Karma: +0/-0
  • I love YaBB 1 Gold!
    • View Profile
Import Type Library doesn't work - SOLVED -
« on: June 12, 2007, 11:52:18 pm »
Hello,

I tried to import the EA type library in Borland Delphi 6.0 and in python.

The EA type library is not shown.

I did:

ea.exe /register (just to be sure)

Delphi -> Projekt -> import type library

Nothing there (well, many other type libraries, but not EA).

I tried with python:

python C:\Python25\Lib\site-packages\win32com\client\makepy.py

Many typelibraries are displayed, not EA.

Any idea?

Thanks:

Uwe Fechner (Using EA 6.5.800 on Windows XP)
« Last Edit: June 14, 2007, 02:33:30 am by ufechner »

thomaskilian

  • Guest
Re: Import Type Library doesn't work
« Reply #1 on: June 13, 2007, 06:03:58 am »
Maybe it's not EA but some obscure DLL?

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Import Type Library doesn't work
« Reply #2 on: June 13, 2007, 10:05:08 am »
I'm not sure about Delphi, but Python can be sensitive to the Path system variable. Check that after you did the makepy, you put the resulting file in the Python path.
No, you can't have it!

thomaskilian

  • Guest
Re: Import Type Library doesn't work
« Reply #3 on: June 13, 2007, 09:17:19 pm »
What about EA.tlb?

ufechner

  • EA User
  • **
  • Posts: 85
  • Karma: +0/-0
  • I love YaBB 1 Gold!
    • View Profile
Re: Import Type Library doesn't work
« Reply #4 on: June 13, 2007, 09:36:11 pm »
Well, I finally found a solution:

c:
cd \Programme\Sparx Systems\EA
copy EA.tlb C:\Python25\Lib\site-packages\win32com\client
cd \Python25\Lib\site-packages\win32com\client
python makepy.py EA.tlb

For delphi, just open the file EA.tlb. The type library editor opens it and generates the according .pas file.

Thanks:

Uwe Fechner
« Last Edit: June 13, 2007, 09:37:34 pm by ufechner »