Highlight a phrase and click this icon to search it on Swyx-Forum    Highlight a phrase and click this icon to search it within the Swyx Knowledgebase    Highlight a phrase and click this icon to search it using Goolge    Highlight a phrase and click this icon to search it using Wikipedia

Highlight a phrase and click this icon to search it on Swyx-Forum    Highlight a phrase and click this icon to search it within the Swyx Knowledgebase    Highlight a phrase and click this icon to search it using Goolge    Highlight a phrase and click this icon to search it using Wikipedia

Forum

Bookmark and Share

Forum

Bookmark and Share

 
  Forums  Development  Client SDK  Accessing "ClientLine" from Delphi
Previous Previous
 
Next Next
New Post 2/3/2012 1:17 PM
Resolved
User is offline Andreas Wieland
2 posts
10th Level Poster


Accessing "ClientLine" from Delphi  (Germany)

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).

 
New Post 2/3/2012 2:26 PM
User is offline Andreas Wieland
2 posts
10th Level Poster


Re: Accessing "ClientLine" from Delphi  (Germany)

OK - Looks like I found a solution:

assigning the result of DispGetLine() to a Variant and  using late binding seems to work...

 
Previous Previous
 
Next Next
  Forums  Development  Client SDK  Accessing "ClientLine" from Delphi

 

 

 

Forum Policy

The discussion forums at Swyx Forum are dedicated to the discussion of Swyx, SwyxWare and related topics.

For the benefit of the community and to protect the integrity of swyx-form, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial products and non-commercial products which are not directly related to SwyxWare, it's OEM versions.
  2. No Flaming or Trolling.
  3. No Profanity, Racism, or Prejudice.
  4. Furthermore, make sure your posts comply to our Terms of Use.
  5. Newest development in German law defines online forums as journalistic content, making the forum owner and all posters to journalists. With this statement the forum owner declares that neither he nor his users are journalists with all legal consequences.
  6. The German Jugendmedienschutz-Staatsvertrag (JMStV) (Protection of Minors) defines a disclosure of online medias which are not suitable for minors below the age of 18. The Swyx Forum webseite does not provide any such content and underlies therefore not this disclosure. Please see further details including the responsible person for the protection of minors and direct contact data in the Imprint.
  7. The forums are currently unmoderated, meaning all postings will appear immediately after submission. If this turns out not working due to massive abuse all forums will switch to moderated mode, meaning a posting must be approved after submission my a moderator before appearing.
  8. You can use any language you like (except for the project forums) but keep in mind that by using english you will reach the largest audience.
  9. Within the project forums english language is mandatory.

 

Forum Policy

The discussion forums at Swyx Forum are dedicated to the discussion of Swyx, SwyxWare and related topics.

For the benefit of the community and to protect the integrity of swyx-form, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial products and non-commercial products which are not directly related to SwyxWare, it's OEM versions.
  2. No Flaming or Trolling.
  3. No Profanity, Racism, or Prejudice.
  4. Furthermore, make sure your posts comply to our Terms of Use.
  5. Newest development in German law defines online forums as journalistic content, making the forum owner and all posters to journalists. With this statement the forum owner declares that neither he nor his users are journalists with all legal consequences.
  6. The German Jugendmedienschutz-Staatsvertrag (JMStV) (Protection of Minors) defines a disclosure of online medias which are not suitable for minors below the age of 18. The Swyx Forum webseite does not provide any such content and underlies therefore not this disclosure. Please see further details including the responsible person for the protection of minors and direct contact data in the Imprint.
  7. The forums are currently unmoderated, meaning all postings will appear immediately after submission. If this turns out not working due to massive abuse all forums will switch to moderated mode, meaning a posting must be approved after submission my a moderator before appearing.
  8. You can use any language you like (except for the project forums) but keep in mind that by using english you will reach the largest audience.
  9. Within the project forums english language is mandatory.

 

Forum Help

Stay up-to-date
Forum Icons
Image Usage
Report Abuse

 

The default language in the forums is english, but feel free to use your mother tongue. Just keep in mind that by using english you will reach the largest audience.

Stay up-to-date
Forum Icons
Image Usage
Report Abuse

 

The default language in the forums is english, but feel free to use your mother tongue. Just keep in mind that by using english you will reach the largest audience.

Sponsors