X10 Community Forum

🖥️ActiveHome Pro => SDK => Topic started by: delphidaz on July 05, 2008, 11:16:36 AM

Title: Has any had any luck with Delphi and CM15a via SDK?
Post by: delphidaz on July 05, 2008, 11:16:36 AM
Hi All,

I'm new to this forum.

I would like to use the SDK to talk and listen to a CM15a.
I have Imported the activeX control into delphi (ver 5 for now) and can "sendplc" fine...
But 'queryplc', 'a6 off' always returns "-1" and 'queryplc', 'a6 on' returns "0"..
also the OnRecvAction causes an exception as described in this forum.

My question is, Has anyone overcome these problems?

I have been using a CM11 before its demise.

Thanks
Delphi Fan

Title: Re: Has any had any luck with Delphi and CM15a via SDK?
Post by: -Bill- (of wgjohns.com) on October 22, 2008, 01:51:41 AM
I have emailed X10 about this problem.  There has been no response so far, but this might explain your problem:

The issue with the SDK is that the ahscript.dll file supplied in the SDK is version 3.0.0.183 while the version supplied with AHP is 3.0.0.200.  The most obvious problem with this is that software that uses the SDK version of the file gets erroneous results when attempting to use the “queryplc” command.  Many that have tried to develop software using the SDK have complained that the “queryplc” command always returns a result of 0.  Granted this is only an issue if the developer or end user doesn’t have AHP installed, or the developed software accesses a local copy of ahscript.dll instead of the one installed by AHP, but it does lead to a lot of frustration when trying to develop software and the “queryplc” command doesn’t appear to work.

Title: Re: Has any had any luck with Delphi and CM15a via SDK?
Post by: EL34 on October 22, 2008, 10:37:11 AM
I just did a test to see why query worked for me in my VB 2008 express app, the results are here in this post.
http://www.x10community.com/forums/index.php?topic=16677.msg91907