Recent

Author Topic: ActiveX: import type library  (Read 2014 times)

SymbolicFrank

  • Hero Member
  • *****
  • Posts: 1313
ActiveX: import type library
« on: August 03, 2017, 01:30:41 pm »
I have some hardware, with an SDK that consists of a .dll and a .tlb, which are created with VB.NET 3.51. The only manual I have only gives some VB.NET examples and lists the types available. Oh, joy.

Anyway, the ActiveX "Import type library" tool generates a few errors (that it cannot read the .lpk file), and the resulting package either doesn't work (when I don't select "Convert dependant typelibs"), or generates access violations (when I do select that, and after fixing the generated mscorlib_2_4_TLB.pas) when I try to put the ActiveX components on a form.

Is there an easy way to get this working, do I have to try and fix the import tool, or do I have to use VB.NET?

This is on Windows 7 64-bit, Lazarus 1.6.4.

SymbolicFrank

  • Hero Member
  • *****
  • Posts: 1313
Re: ActiveX: import type library
« Reply #1 on: August 09, 2017, 09:45:22 am »
Ok, I disassembled the .NET DLL and figured out how the communication worked.

 

TinyPortal © 2005-2018