Hy!
I am having trouble using the "Client SDK" from Delphi.
Using the ClientLineMgr's methods works well (e.g.: "ClientLineMgr.DispSimpleDial(aNumber)")
But I can't get access to a specific line.
When I call ClientLineMgr.DispGetLine(0) i get an intreface of the type "IDispatch"
I tried typecasting it to "ClientLine" and accessing it's properties:
(Swyx is an instance of "ClientLineMgr")
procedure TPhone.Dial(aNumber: string);
var
aLine: integer;
L: ClientLine;
begin
aLine := Swyx.DispSelectedLineNumber;
ShowMessage(INtToStr(aLine));
L := ClientLine(Swyx.DispGetLine(aLine));
ShowMessage(L.DispPeerNumber);
end;
Unfortunately this results in an access violation...
Does someone know how to do it right in Delphi?
(I imported the "CLMgr2.0" TypeLibrary to Delphi 2009 and but I am using the result in Delphi 5 BTW).