Discussion:
Wrong import of ActiveX?
(too old to reply)
jodleren
2010-02-17 18:42:12 UTC
Permalink
Hi all

I have imported an activeX PLServer from NordicID (scanners). It a
programme, which I have got, it works.
I got the code from Delphi 7, portaged it to Delphi 6 (and 5),
imported the OCX myself and created the EXE.
However, there is a problem with getting data from the OCX - I get
some events (data arrived), but later when usign get GetData I do not
get anything.

Could there be a problem with the imported component?

WBR
Sonnich

_DPLServer = dispinterface
['{785739C3-A288-11D2-B82B-8D8A650ADC32}']
function Bell(id: Integer): WordBool; dispid 4;
property BoxPerRow: Smallint dispid 1;
function ClearCmd(id: Integer; cmd: Smallint; start: Smallint;
stop: Smallint): WordBool; dispid 6;
function GetData(id: Integer; pos: Smallint): WideString; dispid
12;


Sonnich
ap
2010-02-18 12:13:43 UTC
Permalink
Post by jodleren
Could there be a problem with the imported component?
WBR
Sonnich
_DPLServer = dispinterface
['{785739C3-A288-11D2-B82B-8D8A650ADC32}']
function Bell(id: Integer): WordBool; dispid 4;
...

Quite impossible to answer with that information. Did you get it to work
right with any of the Delphi versions you listed?

And the next question is that which are the development platforms that
OCX does works right? Maybe some VB, CNet, Java etc. platforms??
http://62.121.56.178/808Web/PLServer/PLServer.htm

If someone got it to work for instance with VB, then Delphi should not
have problems also. Delphi's OCX importing routine works quite reliably.
In general, if it able to import the ActiveX, then the imported control
mostly runs fine.

Yet some ActiveX components did not get imported for instance with D6
version, but older D3 version had no problem. D3 easily created the
needed MyComp_tlb.PAS file, and that file again worked and compiled fine
also with D6.
-ap

Loading...