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 Intranet OCX with .net



--Apple-Mail-6-339759992
Content-Type: text/plain;
charset=US-ASCII;
format=flowed;
delsp=yes
Content-Transfer-Encoding: 7bit

Hi,
I don't have a copy of .net to test this but the Byval sender as
Object doesn't look right. It should be a string, now I don't know how
that is written in .net, probably string!, but that would be a good
guess at what is wrong.  I have seen the ocx used in .net as well as
excel and delphi ( i think) so it should work

James

On 17 Aug 2008, at 18:43, pjs_gsy wrote:

> Hi,
>
> I thought I'd try the OCX with vb.net. I don.t seem to be getting
> very far.
>
> Does the OCX work with vb.net apps? The problem I'm seeing is that
> the events don't fire. For example, I have a very simple app with
>
> Private Sub XapIntranet_xAPHeartbeat(ByVal sender As Object, ByVal
> e As AxxAPIntranetOCX.__xAP_Intranet_xAPHeartbeatEvent) Handles
> XapIntranet.xAPHeartbeat
> MsgBox(sender)
> End Sub
>
> Private Sub Button1_Click(ByVal sender As System.Object, ByVal e
> As System.EventArgs) Handles Button1.Click
> Dim msg As String
> Dim x
> msg = "Display" & Chr(10)
> msg &= "{" & Chr(10)
> msg &= "Display=testing" & Chr(10)
> msg &= "}" & Chr(10)
> XapIntranet.SendxAP("", "message.display", msg)
> End Sub
>
> Pressing the button writes a message you can see in the xap viewer as
> expected, but the heartbeat event never fires even though these events
> can be seen in the viewer all the time.
>
> Does anyone have a .net example?
>
>
>


--Apple-Mail-6-339759992
Content-Type: text/html; charset=US-ASCII
Content-Transfer-Encoding: 7bit





<html><body style="word-wrap: break-word; -webkit-nbsp-mode:
space; -webkit-line-break: after-white-space; ">

Hi,<div>I don't have a copy of .net to test this but the Byval sender
as Object doesn't look right. It should be a string, now I don't know how
that is written in .net, probably string!, but that would be a good guess
at what is wrong. &nbsp;I have seen the ocx used in .net as well as
excel and delphi ( i think) so it should
work</div><div><br></div><div>James</div><div><br><div><div>On
17 Aug 2008, at 18:43, pjs_gsy wrote:</div><br
class="Apple-interchange-newline"><blockquote
type="cite"><span class="Apple-style-span"
style="border-collapse: separate; color: rgb(0, 0, 0); font-family:
Helvetica; font-size: 12px; font-style: normal; font-variant: normal;
font-weight: normal; letter-spacing: normal; line-height: normal; orphans:
2; text-align: auto; text-indent: 0px; text-transform: none; white-space:
normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing:
0px; -webki
t-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none;
-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0;
"><div style="background-color: rgb(255, 255, 255);
"><div id="ygrp-mlmsg" style="width: 655px;
position: relative; font-size: 13px; font-family: arial, helvetica, clean,
sans-serif; "><div id="ygrp-msg" style="width:
470px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left:
0px; padding-top: 0px; padding-right: 25px; padding-bottom: 0px;
padding-left: 0px; float: left; z-index: 1; line-height: 1.22em;
"><div id="ygrp-text" style="line-height: 1.22em;
font-family: Georgia; "><p style="line-height: 1.22em;
margin-top: 0px; margin-right: 0px; margin-bottom: 1em; margin-left: 0px;
">Hi,<br style="line-height: 1.22em; "><br
style="line-height: 1.22em; ">I thought I'd try the OCX with
vb.net. I don.t seem to be get
ting<br style="line-height: 1.22em; ">very far.<br
style="line-height: 1.22em; "><br style="line-height:
1.22em; ">Does the OCX work with vb.net apps? The problem I'm
seeing is that<br style="line-height: 1.22em; ">the events
don't fire. For example, I have a very simple app with<span
class="Apple-converted-space">&nbsp;</span><br
style="line-height: 1.22em; "><br style="line-height:
1.22em; ">Private Sub XapIntranet_<wbr style="line-height:
1.22em; ">xAPHeartbeat(<wbr style="line-height: 1.22em;
">ByVal sender As Object, ByVal<br style="line-height:
1.22em; ">e As AxxAPIntranetOCX.<wbr style="line-height:
1.22em; ">__xAP_Intranet_<wbr style="line-height: 1.22em;
">xAPHeartbeatEven<wbr style="line-height: 1.22em;
">t) Handles<br style="line-height: 1.22em;
">XapIntranet.<wbr
style="line-height: 1.22em; ">xAPHeartbeat<br
style="line-height: 1.22em; ">MsgBox(sender)<br
style="line-height: 1.22em; ">End Sub<br
style="line-height: 1.22em; "><br style="line-height:
1.22em; ">Private Sub Button1_Click(<wbr
style="line-height: 1.22em; ">ByVal sender As System.Object,
ByVal e<br style="line-height: 1.22em; ">As
System.EventArgs) Handles Button1.Click<br style="line-height:
1.22em; ">Dim msg As String<br style="line-height: 1.22em;
">Dim x<br style="line-height: 1.22em; ">msg =
"Display" &amp; Chr(10)<br style="line-height:
1.22em; ">msg &amp;= "{" &amp; Chr(10)<br
style="line-height: 1.22em; ">msg &amp;=
"Display=testing" &amp; Chr(10)<br
style="line-height: 1.22em; ">msg &amp;= "}"
&amp; Chr(10)<br style="line
-height: 1.22em; ">XapIntranet.<wbr style="line-height:
1.22em; ">SendxAP("<wbr style="line-height: 1.22em;
">", "message.display"<wbr
style="line-height: 1.22em; ">, msg)<br
style="line-height: 1.22em; ">End Sub<br
style="line-height: 1.22em; "><br style="line-height:
1.22em; ">Pressing the button writes a message you can see in the
xap viewer as<br style="line-height: 1.22em; ">expected,
but the heartbeat event never fires even though these events<br
style="line-height: 1.22em; ">can be seen in the viewer all
the time.<br style="line-height: 1.22em; "><br
style="line-height: 1.22em; ">Does anyone have a .net
example?<br style="line-height: 1.22em; "><br
style="line-height: 1.22em; "></p></div><span
width="1" style="color: white; line-height: 1.22em;
">&
lt;/span></div></span></blockquote></div><br></div>
<span width="1" style="color:
white;"/>__._,_.___</span>

<!-- Start Recommendations -->
<!-- End Recommendations -->



<!-- **begin egp html banner** -->

<img src="http://geo.yahoo.com/serv?s=97476590/grpId=9629476/grpspId=1705007709/msgId=1939/stime=1219165136";
width="1" height="1"> <br>

<!-- **end egp html banner** -->


<!-- **begin egp html banner** -->

<br>
<div style="font-family: verdana; font-size: 77%; border-top: 1px
solid #666; padding: 5px 0;" >
Your email settings: Individual EmailTraditional <br>
<a href="http://groups.yahoo.com/group/xAP_developer/join;_ylc=X3oDMTJmcmFzbnJkBF9TAzk3NDc2NTkwBGdycElkAzk2Mjk0NzYEZ3Jwc3BJZAMxNzA1MDA3NzA5BHNlYwNmdHIEc2xrA3N0bmdzBHN0aW1lAzEyMTkxNjUxMzY-";>Change
settings via the Web</a> (Yahoo! ID required) <br>
Change settings via email: <a href="mailto:xAP_developer-digest@xxxxxxx?subject=Email
Delivery: Digest">Switch delivery to Daily Digest</a>  <a
href = "mailto:xAP_developer-fullfeatured@xxxxxxx?subject=Change
Delivery Format: Fully Featured">Switch to Fully Featured</a>
<br>
<a href="http://groups.yahoo.com/group/xAP_developer;_ylc=X3oDMTJkNWZhZWdqBF9TAzk3NDc2NTkwBGdycElkAzk2Mjk0NzYEZ3Jwc3BJZAMxNzA1MDA3NzA5BHNlYwNmdHIEc2xrA2hwZgRzdGltZQMxMjE5MTY1MTM2";>
Visit Your Group
</a>
<a href="http://docs.yahoo.com/info/terms/";>
Yahoo! Groups Terms of Use
</a>
<a href="mailto:xAP_developer-unsubscribe@xxxxxxx?subject=Unsubscribe";>
Unsubscribe
</a>
<br>
</div>
<br>

<!-- **end egp html banner** -->


<span  style="color: white;"/>__,_._,___</span>
</body></html>
--Apple-Mail-6-339759992--


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.