The UK Home Automation Archive

Archive Home
Group Home
Search Archive


Advanced Search

The UKHA-ARCHIVE IS CEASING OPERATIONS 31 DEC 2024


[Message Prev][Message Next][Thread Prev][Thread Next][Message Index][Thread Index]

RE: XAP OCX Control


  • Subject: RE: XAP OCX Control
  • From: Kevin Hawkins
  • Date: Wed, 21 May 2003 18:06:00 +0000

<div class="Section1">
<p class="MsoNormal"><font size="2"
color="navy" face="Arial"><span>Glad you got
it going &#8211; I am using
it in exactly the same setup (VB6 and XP) and it seems to work fine so I
shall
be interested in how you get along.</span></font></p>
<p class="MsoNormal"><font size="2"
color="navy"
face="Arial"><span>&nbsp;</span></font></p>
<p class="MsoNormal"><font size="2"
color="navy" face="Arial"><span>The way the
OCX sends xAP messages is
slightly different to the published v1.2 spec. Patrick is going to revise
the OCX
shortly to bring it inline. The resulting messages work well with
Patricks&#8217;
other stuff but Stuarts&#8217; Framework is a little tighter on the
control of message
structure and balks at the xAP messages from the OCX
</span></font></p>
<p class="MsoNormal"><font size="2"
color="navy"
face="Arial"><span>&nbsp;</span></font></p>
<p class="MsoNormal"><font size="2"
face="Courier New"><span>xap-header
{&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<<<-here</span></font></p>
<p class="MsoNormal"><font size="2"
face="Courier
New"><span>v=12</span></font></p>
<p class="MsoNormal"><font size="2"
face="Courier
New"><span>hop=1</span></font></p>
<p class="MsoNormal"><font size="2"
face="Courier
New"><span>uid=ABCDEF</span></font></p>
<p class="MsoNormal"><font size="2"
face="Courier
New"><span>class=xAPClass</span></font></p>
<p class="MsoNormal"><font size="2"
face="Courier
New"><span>source=UKUSA.test.one</span></font></p>
<p class="MsoNormal"><font size="2"
face="Courier
New"><span>target=UKUSA.*</span></font></p>
<p class="MsoNormal"><font size="2"
face="Courier New"><span>}
</span></font></p>
<p class="MsoNormal"><font size="2"
face="Courier New"><span>thermostat.current
{&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<<<-
&amp; here</span></font></p>
<p class="MsoNormal"><font size="2"
face="Courier
New"><span>temp=21</span></font></p>
<p class="MsoNormal"><font size="2"
face="Courier
New"><span>setpoint=25</span></font></p>
<p class="MsoNormal"><font size="2"
face="Courier New"><span>}
</span></font></p>
<p class="MsoNormal"><font size="2"
face="Courier New"><span>thermostat.later
{&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<<<-
&amp; here</span></font></p>
<p class="MsoNormal"><font size="2"
face="Courier
New"><span>tempnow=21</span></font></p>
<p class="MsoNormal"><font size="2"
face="Courier
New"><span>}</span></font></p>
<p class="MsoNormal"><font size="2"
color="navy"
face="Arial"><span>&nbsp;</span></font></p>
<p class="MsoNormal"><font size="2"
color="navy" face="Arial"><span>Note the
lack of a CHR(10) after the xAP header line and also after the section
name.- you
can massage them into full compliance with the following code snippet
&#8211;
it&#8217;s not the most elegant but it was a quick fix. Your xAPp will
then
interoperate with all other applications
correctly</span></font></p>
<p class="MsoNormal"><font size="3"
face="Times New
Roman"><span>&nbsp;</span></font></p>
<p class="MsoNormal"><font size="3"
face="Times New
Roman"><span>&nbsp;</span></font></p>
<p class="MsoNormal"><font size="2"
face="Courier New"><span>Private Sub
Fixit(message)</span></font></p>
<p class="MsoNormal"><font size="2"
face="Courier New"><span>Dim I1 As
Integer</span></font></p>
<p class="MsoNormal"><font size="2"
face="Courier New"><span>I1 = InStr(1, buffer,
"{")</span></font></p>
<p class="MsoNormal"><font size="2"
face="Courier New"><span>While I1 <>
0</span></font></p>
<p class="MsoNormal"><font size="2"
face="Courier New"><span>buffer = Left(buffer, I1 -
1) &amp; Chr(10) &amp; Mid(buffer,
I1)</span></font></p>
<p class="MsoNormal"><font size="2"
face="Courier New"><span>I1 = InStr(I1 + 2, buffer,
"{")</span></font></p>
<p class="MsoNormal"><font size="2"
face="Courier
New"><span>Wend</span></font></p>
<p class="MsoNormal"><font size="2"
face="Courier New"><span>End
Sub</span></font></p>
<p class="MsoNormal"><font size="2"
face="Courier
New"><span>&nbsp;</span></font></p>
<p class="MsoNormal"><font size="2"
face="Courier
New"><span>&nbsp;</span></font></p>
<p class="MsoNormal"><font size="2"
face="Courier
New"><span>&nbsp;</span></font></p>
<p class="MsoNormal"><font size="2"
face="Courier New"><span>xap-header
</span></font></p>
<p class="MsoNormal"><font size="2"
face="Courier
New"><span>{</span></font></p>
<p class="MsoNormal"><font size="2"
face="Courier
New"><span>v=12</span></font></p>
<p class="MsoNormal"><font size="2"
face="Courier
New"><span>hop=1</span></font></p>
<p class="MsoNormal"><font size="2"
face="Courier
New"><span>uid=ABCDEF</span></font></p>
<p class="MsoNormal"><font size="2"
face="Courier
New"><span>class=xAPClass</span></font></p>
<p class="MsoNormal"><font size="2"
face="Courier
New"><span>source=UKUSA.test.one</span></font></p>
<p class="MsoNormal"><font size="2"
face="Courier
New"><span>target=UKUSA.*</span></font></p>
<p class="MsoNormal"><font size="2"
face="Courier New"><span>}
</span></font></p>
<p class="MsoNormal"><font size="2"
face="Courier New"><span>thermostat.current
</span></font></p>
<p class="MsoNormal"><font size="2"
face="Courier
New"><span>{</span></font></p>
<p class="MsoNormal"><font size="2"
face="Courier
New"><span>temp=21</span></font></p>
<p class="MsoNormal"><font size="2"
face="Courier
New"><span>setpoint=25</span></font></p>
<p class="MsoNormal"><font size="2"
face="Courier New"><span>}
</span></font></p>
<p class="MsoNormal"><font size="2"
face="Courier New"><span>thermostat.later
</span></font></p>
<p class="MsoNormal"><font size="2"
face="Courier
New"><span>{</span></font></p>
<p class="MsoNormal"><font size="2"
face="Courier
New"><span>tempnow=21</span></font></p>
<p class="MsoNormal"><font size="2"
face="Courier
New"><span>}</span></font></p>
<p class="MsoNormal"><font size="2"
face="Courier
New"><span>&nbsp;</span></font></p>
<p class="MsoNormal"><font size="2"
face="Courier
New"><span>&nbsp;</span></font></p>
<p class="MsoNormal"><font size="2"
face="Courier
New"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></font><font size="2"
color="navy" face="Arial"><span>Welcome to the
group btw &#8211; nice to have you here and just
shout up with any questions, comments or
suggestions.</span></font></p>
<p class="MsoNormal"><font size="2"
color="navy"
face="Arial"><span>&nbsp;</span></font></p>
<p class="MsoNormal"><font size="2"
color="navy"
face="Arial"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Kevin</span></font></p>
<p class="MsoNormal"><font size="2"
face="Courier
New"><span>&nbsp;</span></font></p>
<p class="MsoNormal"><font size="2"
face="Courier
New"><span>&nbsp;</span></font></p>
<p class="MsoNormal"><font size="2"
face="Courier
New"><span>&nbsp;</span></font></p>
<p class="MsoNormal"><font size="2"
face="Courier
New"><span>&nbsp;</span></font></p>
<p class="MsoNormal"><font size="3"
face="Arial"><span>&#8211;<font
size="1" face="Times New
Roman"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></font></span></font>&nbsp;</p>
<p class="MsoNormal"><font size="2"
face="Tahoma"><span lang="EN-US">-----Original
Message-----
<b><span>From:</span></b> Simon Beech
[mailto:simon@xxxxxxx]
<b><span>Sent:</span></b>
</span></font><font size="2"
face="Tahoma"><span lang="EN-US">21
May 2003</span></font><font size="2"
face="Tahoma"><span lang="EN-US">
</span></font><font size="2"
face="Tahoma"><span
lang="EN-US">17:12</span></font><font
size="2" face="Tahoma"><span
lang="EN-US">
<b><span>To:</span></b>
</span></font><font size="2"
face="Tahoma"><span
lang="EN-US">xAP_developer@xxxxxxx</span></font><font
size="2" face="Tahoma"><span
lang="EN-US">
<b><span>Subject:</span></b> RE: [xAP_developer]
XAP
OCX Control</span></font></p>
<div>
<p class="MsoNormal"><font size="3"
face="Times New
Roman"><span>&nbsp;</span></font></p>
<p class="MsoNormal"><font size="2"
color="navy" face="Arial"><span
lang="EN-US">After a bit of souring
around I found an older version of msvcrtd.dll and managed to get the ocx
to
register.</span></font></p>
<p class="MsoNormal"><font size="2"
color="navy" face="Arial"><span
lang="EN-US">&nbsp;</span></font></p>
<p class="MsoNormal"><font size="2"
color="navy" face="Arial"><span
lang="EN-US">I&#8217;ll see what I can
knock up in VB</span></font></p>
<p class="MsoNormal"><font size="2"
color="navy" face="Arial"><span
lang="EN-US">&nbsp;</span></font></p>
<p class="MsoNormal"><font size="2"
color="navy" face="Arial"><span
lang="EN-US">Thanks</span></font></p>
<p class="MsoNormal"><font size="2"
color="navy" face="Arial"><span
lang="EN-US">&nbsp;</span></font></p>
<div>
<div>
<div class="MsoNormal" align="center"><font
size="3" face="Times New Roman"><span
lang="EN-US">
<hr size="2" width="100%"
align="center">
</span></font></div>
</div>
<p class="MsoNormal"><b><font size="2"
face="Tahoma"><span
lang="EN-US">From:</span></font></b><font
size="2" face="Tahoma"><span
lang="EN-US">
Kevin Hawkins [mailto:lists@xxxxxxx]
<b><span>Sent:</span></b> 21 May 2003 16:52
<b><span>To:</span></b>
xAP_developer@xxxxxxx</span></font></p>
</div>
<p class="MsoNormal"><font size="3"
face="Times New Roman"><span
lang="EN-US">&nbsp;</span></font></p>
<p class="MsoNormal"><tt><font size="2"
face="Courier New"><span lang="EN-US">Hi
Stuart,</span></font></tt><font size="2"
face="Courier New"><span lang="EN-US">

<tt><font face="Courier New">There is a definite
dependency on this file
(msvcrtd.dll )with the OCX -</font></tt>
<tt><font face="Courier New">maybe Patrick needs to
make set a switch in his
code to move to the release</font></tt>
<tt><font face="Courier New">build ?? I had the same
problems registering the
OCX as Simon has - on three</font></tt>
<tt><font face="Courier New">different machines -
including that fated W98 UKHA
one and this fixed it.</font></tt>
<tt><font face="Courier New">There is also a
dependency on EFSADU.DLL although
as this is a 'delayed</font></tt>
<tt><font face="Courier New">load' it does not stop
the registration of the
OCX.</font></tt>

<tt><font face="Courier
New">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
K</font></tt>

<tt><font face="Courier New">&nbsp;&nbsp;
> -----Original Message-----</font></tt>
<tt><font face="Courier New">&nbsp;&nbsp;
> From: Stuart Booth
[mailto:lists@xxxxxxx]</font></tt>
<tt><font face="Courier New">&nbsp;&nbsp;
> Sent: 21 May 2003 16:20</font></tt>
<tt><font face="Courier New">&nbsp;&nbsp;
> To:
xAP_developer@xxxxxxx</font></tt>
<tt><font face="Courier New">&nbsp;&nbsp;
> Subject: Re: [xAP_developer] XAP
OCX Control</font></tt>
<tt><font face="Courier New">&nbsp;&nbsp;
> </font></tt>
<tt><font face="Courier New">&nbsp;&nbsp;
> On Wed, 21 May 2003 15:51:28
+0100, "Kevin Hawkins"</font></tt>
<tt><font face="Courier New">&nbsp;&nbsp;
> <lists@xxxxxxx>
wrote:</font></tt>
<tt><font face="Courier New">&nbsp;&nbsp;
> </font></tt>
<tt><font face="Courier New">&nbsp;&nbsp;
> >If so then I have another
suggestion. The OCX requires the following</font></tt>
<tt><font face="Courier New">&nbsp;&nbsp;
> DLL</font></tt>
<tt><font face="Courier New">&nbsp;&nbsp;
> >msvcrtd.dll</font></tt>
<tt><font face="Courier New">&nbsp;&nbsp;
> </font></tt>
<tt><font face="Courier New">&nbsp;&nbsp;
> That's the Debug variant of the
MS VisualC RunTime library rather than</font></tt>
<tt><font face="Courier New">&nbsp;&nbsp;
> a Release build version that
might already be on a machine through</font></tt>
<tt><font face="Courier New">&nbsp;&nbsp;
> installation of some other app.</font></tt>
<tt><font face="Courier New">&nbsp;&nbsp;
> </font></tt>
<tt><font face="Courier New">&nbsp;&nbsp;
> Stuart</font></tt>
<tt><font face="Courier New">&nbsp;&nbsp;
> --</font></tt>
<tt><font face="Courier New">&nbsp;&nbsp;
> Stuart Booth</font></tt>
<tt><font face="Courier New">&nbsp;&nbsp;
> Somewhere in Buckinghamshire,
England, UK</font></tt>
<tt><font face="Courier New">&nbsp;&nbsp;
> </font></tt>
<tt><font face="Courier New">&nbsp;&nbsp;
> stuart@xxxxxxx</font></tt>
<tt><font face="Courier New">&nbsp;&nbsp;
> </font></tt>
<tt><font face="Courier New">&nbsp;&nbsp;
> ------------------------ Yahoo!
Groups Sponsor ---------------------~--</font></tt>
<tt><font face="Courier New">&nbsp;&nbsp;
> ></font></tt>
<tt><font face="Courier New">&nbsp;&nbsp;
> Get A Free Psychic Reading!</font></tt>
<tt><font face="Courier New">&nbsp;&nbsp;
> Your Online Answer To Life's
Important Questions.</font></tt>
<tt><font face="Courier New">&nbsp;&nbsp;
> <a href="http://us.click.yahoo.com/aM1XQD/od7FAA/uetFAA/dpFolB/TM";>http://us.click.yahoo.com/aM1XQD/od7FAA/uetFAA/dpFolB/TM</a></font></tt>
<tt><font face="Courier New">&nbsp;&nbsp;
>
---------------------------------------------------------------------~-</font></tt>
<tt><font face="Courier New">&nbsp;&nbsp;
> ></font></tt>
<tt><font face="Courier New">&nbsp;&nbsp;
> </font></tt>
<tt><font face="Courier New">&nbsp;&nbsp;
> To unsubscribe from this group,
send an email to:</font></tt>
<tt><font face="Courier New">&nbsp;&nbsp;
>
xAP_developer-unsubscribe@xxxxxxx</font></tt>
<tt><font face="Courier New">&nbsp;&nbsp;
> </font></tt>
<tt><font face="Courier New">&nbsp;&nbsp;
> </font></tt>
<tt><font face="Courier New">&nbsp;&nbsp;
> </font></tt>
<tt><font face="Courier New">&nbsp;&nbsp;
> Your use of Yahoo! Groups is
subject to</font></tt>
<tt><font face="Courier New">&nbsp;&nbsp;
> <a href="http://docs.yahoo.com/info/terms/";>http://docs.yahoo.com/info/terms/</a></font></tt>



</span></font></p>
<p class="MsoNormal"><tt><font size="2"
face="Courier New"><span lang="EN-US">To
unsubscribe from this group, send an email
to:</span></font></tt><font size="2"
face="Courier New"><span lang="EN-US">
<tt><font face="Courier
New">xAP_developer-unsubscribe@xxxxxxx</font></tt>

</span></font><span lang="EN-US">

</span><tt><font size="2" face="Courier
New"><span lang="EN-US">Your use of Yahoo! Groups
is subject to the <a href="http://docs.yahoo.com/info/terms/";>Yahoo!
Terms of Service</a>.</span></font></tt><span
lang="EN-US"> </span></p>
</br>
<p class="MsoNormal"><font size="3"
face="Times New Roman"><span lang="EN-US">

</span></font></p>
</span><tt><font size="2" face="Courier
New"><span lang="EN-US">To unsubscribe
from this group, send an email
to:</span></font></tt><font size="2"
face="Courier New"><span lang="EN-US">
<tt><font face="Courier
New">xAP_developer-unsubscribe@xxxxxxx</font></tt>

</span></font><span lang="EN-US">

</span><tt><font size="2" face="Courier
New"><span lang="EN-US">Your use of Yahoo! Groups
is subject to the <a href="http://docs.yahoo.com/info/terms/";>Yahoo!
Terms of Service</a>.</span></font></tt><span
lang="EN-US"> </span></p>
</div>
</br></div>




xAP_Development Main Index | xAP_Development Thread Index | xAP_Development Home | Archives Home

Comments to the Webmaster are always welcomed, please use this contact form . Note that as this site is a mailing list archive, the Webmaster has no control over the contents of the messages. Comments about message content should be directed to the relevant mailing list.