开发者

working with dll ocx in delphi

i´m trying to use 2 a dll (OCX) in my application but when i want to call a function how can i do soo?

how can i call this funcion RSDKLib_TLB.IID_IMeasurement.... "TGUID"???

in the dll is

 IID_IMeasurement: TGUID = '{97E75BE0-AF26-4E4A开发者_运维知识库-B651-C5DDECEC2936}';

or is the approach wrong??


Sounds like you may need some basic introduction to COM Programming.

It sounds like you have imported the library. But you need to learn how to call the functions that holds.

First off look at the bottom of the import unit (right above the implementation keyword) you will find several classes named CoXXX where XXX is usually the name of the interface you want to create.

The CoXXX Classes will look like this:

  CoXXX = class
    class function Create: IXXX;
    class function CreateRemote(const MachineName: string): IXXX;
  end;

So taking a guess at the information you have provided.

var
 M : IMeasurement;
begin
 M := CoIMeasurement.Create
 M.MethodYouNeedToCall;
end;
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜