API Support Forum
OEC API > API Support > Differences in TLB
Author Topic: Differences in TLB
(6 messages, Page 1 of 1)
Moderators: VPfau
Data59
Posts: 4
Joined: Jul 26, 2007


Posted: Sep 17, 2007 @ 11:36 AM             Msg. 1 of 6
Hello,

I am using the API with Delphi. Today I've download the newest "OEC API COM.exe" and installed. If I compare the generated "OECAPICOM_TLB.pas" and the "OECAPICOM_TLB.pas" from Delphi sample that was installed through "OEC API COM.exe" the following differences comes up:

// PASTLWTR : $Revision: 1.130.1.0.1.0.1.6 $ [generated file]
// PASTLWTR : 1.2 [file from samples]

Is this Okay?

Regards
Data59
SergeK
-Developer-
Posts: 475
Joined: Jan 26, 2007


Posted: Sep 17, 2007 @ 11:55 AM             Msg. 2 of 6
that line seems to be generated by delphi tlb imported, and could mean that you have different delphi version from that we have.

I do not think there is any problem related to this difference.
Data59
Posts: 4
Joined: Jul 26, 2007


Posted: Sep 17, 2007 @ 03:00 PM             Msg. 3 of 6
Hello Serge,

many thanks for your quick answer.

in the generated file are a lot of differences to the sample file. I load up a zip-archive to my server so that you can download it and compare. Here is the URL: "www.trading-system.de/misc/TLB.zip"

The problem of that is, the generated components have not the same event parameters. Every event which is based on the generated file comes with "OleVariant" parameters, the sample file generated events comes with the right event parameters like "ISubscription" or "IContract" or "IPrice".

With the "OleVariant" parameters it is not possible to do a succesfully typecast.

Whats your Delphi version, I'm using Delphi 6.

Thanks in advance.

Best regards
Data59
SergeK
-Developer-
Posts: 475
Joined: Jan 26, 2007


Posted: Sep 17, 2007 @ 03:55 PM             Msg. 4 of 6
Sorry, but we do not have Delphi 6 and never tested OEC COM API with that version.

Please try using Delphi 7.
Data59
Posts: 4
Joined: Jul 26, 2007


Posted: Sep 18, 2007 @ 02:13 AM             Msg. 5 of 6
I've solved the problem with Delphi 6. Now all works perfect for me.

Thanks again.

Best regards from Germany
Data59
SergeK
-Developer-
Posts: 475
Joined: Jan 26, 2007


Posted: Sep 18, 2007 @ 08:32 AM             Msg. 6 of 6
Glad to read that.

Wish you luck in the further development.

Serge.