Recent

Author Topic: Using .LIB libraries --- ....is not a valid Windows image....  (Read 15722 times)

CM630

  • Hero Member
  • *****
  • Posts: 1678
  • Не съм сигурен, че те разбирам.
    • http://sourceforge.net/u/cm630/profile/
Re: Using .LIB libraries --- ....is not a valid Windows image....
« Reply #15 on: June 18, 2013, 08:27:30 am »
Yes, several times, on the diagonal system, I will read it fully, maybe I missed something.

Edit:
1. In the sentence import the ActiveX type library, drop the TActiveXContainer on a form, instantiate the ActiveX object and assign it to the ComServer property. i cannot understand
instantiate the ActiveX object and assign it to the ComServer property.
2. I absolutely cannot understand create a new component from the type library or the object and drop that new component on the form. This also uses early binding and has full event support. Event handlers can be assigned from the IDE.

In the examples DLLs are used, for IE it says that a TLB is needed, also.
I have a TLB, but I do not have a DLL.
As I already wrote, Lazarus->Tools->Import type library does not add functions and procedures, but only types and constants. I tried axvlc.dll and the functions and procedures were generated.
Probably it does not understand my TLB file completely?

The TLB file cannot be added in the ActiveX contaner, since it does not have an OleClassName.
« Last Edit: June 18, 2013, 09:01:02 am by paskal »
Лазар 4,4 32 bit (sometimes 64 bit); FPC3,2,2

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 12781
  • FPC developer.
Re: Using .LIB libraries --- ....is not a valid Windows image....
« Reply #16 on: June 21, 2013, 01:36:06 pm »
That sounds like a corrupt tlb in the .tlb file, and a correct TLB in the DLL file.

CM630

  • Hero Member
  • *****
  • Posts: 1678
  • Не съм сигурен, че те разбирам.
    • http://sourceforge.net/u/cm630/profile/
Re: Using .LIB libraries --- ....is not a valid Windows image....
« Reply #17 on: July 03, 2013, 10:11:34 am »
Thanks for the assistance.
Currently I have found another solution for my issue, without using the TLB.

I think there is nothing corrupt in the TLB file, but I do not know how to find out which is the DLL for the TLB. I suppose that I won't hurt any copyrights if I upload it, in case that someone happens to be interested in the issue.
Лазар 4,4 32 bit (sometimes 64 bit); FPC3,2,2

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: Using .LIB libraries --- ....is not a valid Windows image....
« Reply #18 on: July 03, 2013, 10:31:37 am »
I suppose that I won't hurt any copyrights if I upload it, in case that someone happens to be interested in the issue.
I suppose you might well infringe on copyright/EULA/licenses, so I wouldn't do it... What makes you think you won't?
Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified

CM630

  • Hero Member
  • *****
  • Posts: 1678
  • Не съм сигурен, че те разбирам.
    • http://sourceforge.net/u/cm630/profile/
Re: Using .LIB libraries --- ....is not a valid Windows image....
« Reply #19 on: July 03, 2013, 10:35:45 am »
I suppose that I won't hurt any copyrights if I upload it, in case that someone happens to be interested in the issue.
I suppose you might well infringe on copyright/EULA/licenses, so I wouldn't do it... What makes you think you won't?
Well, at least I can submit a link to the TLB file, which is freely downloadable from the National Instruments site.
Лазар 4,4 32 bit (sometimes 64 bit); FPC3,2,2

 

TinyPortal © 2005-2018