Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2020-09

Problem with importtl

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

gabor

I try to import a type library using "importtl" but it fails - ends with EAccessViolation exception. I am using fpc trunk from today. I have tried importing different libraries but with no success. Could someone confirm the problem?

d:\fpcupdeluxetrunk\fpc\bin\i386-win32>importtl
C:\Windows\SysWow64\OICFiscalPrinterLib.ocx
Reading typelib from C:\Windows\SysWow64\OICFiscalPrinterLib.ocx ... An unhandled exception occurred at $00423718:
EAccessViolation: Access violation
$00423718 TYPETOSTRING, line 354 of winunits-base/src/typelib.pas $00423D16 TYPETOSTRING, line 427 of winunits-base/src/typelib.pas $00424617 INTERFACEDECLARATION, line 582 of
winunits-base/src/typelib.pas
$004292BA CREATEINTERFACES, line 1437 of winunits-base/src/typelib.pas $0042B374 DOIMPORTTYPELIB, line 1821 of winunits-base/src/typelib.pas $0042BE32 EXECUTE, line 1971 of winunits-base/src/typelib.pas $00422B8E IMPORTTYPELIB, line 188 of winunits-base/src/typelib.pas $00401EA8 main, line 103 of importtl/importtl.pas

Michał.

Reply by email

Bart
to gabor
PM gabor wrote
I try to import a type library using "importtl" but it fails - ends with EAccessViolation exception.

I get:
C:\Windows\SysWOW64>importtl msdxm.ocx -n
Reading typelib from -n ...
An unhandled exception occurred at $00439916:
EOleSysError: Fout bij laden van type DLL-bestand. $00439916 OLEERROR, line 569 of ./winunits-base/src/comobj.pp $00429A4F TTYPELIBIMPORTER__DOIMPORTTYPELIB, line 1812 of ./winunits-base/src/typelib.pas
$0042A5B2 TTYPELIBIMPORTER__EXECUTE, line 1971 of ./winunits-base/src/typelib.pas
$004213AE IMPORTTYPELIB, line 188 of ./winunits-base/src/typelib.pas $00401EB8 main, line 103 of importtl/importtl.pas

(With r45606)

Bart

Reply by email

gabor
to Bart

W dniu 2020-09-06 o 21:41, Bart via fpc-devel pisze:

Show quoted text 15 lines
I get: C:\Windows\SysWOW64>importtl msdxm.ocx -n Reading typelib from -n ... An unhandled exception occurred at $00439916: EOleSysError: Fout bij laden van type DLL-bestand. $00439916 OLEERROR, line 569 of ./winunits-base/src/comobj.pp $00429A4F TTYPELIBIMPORTER__DOIMPORTTYPELIB, line 1812 of ./winunits-base/src/typelib.pas $0042A5B2 TTYPELIBIMPORTER__EXECUTE, line 1971 of ./winunits-base/src/typelib.pas $004213AE IMPORTTYPELIB, line 188 of ./winunits-base/src/typelib.pas $00401EB8 main, line 103 of importtl/importtl.pas (With r45606)

Unfortunately, msdxm.ocx file does not contain type library. Try msdxm.tlb instead.

Michał.

Reply by email