[Message Prev][Message
Next][Thread Prev][Thread Next][Message
Index][Thread Index]
RE: RE: example VB.net xAP apps and docs?
------=_NextPart_000_0019_01C99065.3D8B5D50
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit
Going a little further, this enhanced reader application shows how to start
picking apart messages:
Imports KCS.xAP.Framework.Transport
Imports KCS.xAP.Framework.Message
Module xAPReader
Dim WithEvents listener As New xAPHubClientListener
Sub Main()
Console.WriteLine("xAP message reader (VB.Net) - hit return to
exit")
Console.WriteLine(String.Format("My address={0}, UID={1}",
listener.Heartbeat.Source, listener.Heartbeat.UID))
listener.Start()
Console.ReadLine()
End Sub
Sub Listener_EventHandler(ByVal sender As Object, ByVal msgEvent As
xAPMessageEventArgs) Handles listener.eventMessageReceived
Dim msg As xAPMessage = msgEvent.Message
Dim hdr As xAPHeaderBase = msg.Header
Dim body As xAPMessageBody = msg.Body
Console.WriteLine(String.Format("Received {0} from {1}, UID {2}",
hdr.Class, hdr.Source, hdr.UID))
For Each block As xAPMessageBlock In body
Console.WriteLine(String.Format(" Block: {0}", block.Name))
For Each parameter As String In block.Keys
Dim v As xAPPairValue = block(parameter)
Console.WriteLine(String.Format(" {0} = {1}",
parameter, v.Value))
Next
Next
End Sub
End Module
From: xap_automation@xxxxxxx [mailto:xap_automation@xxxxxxx]
On Behalf Of Edward Pearson
Sent: 16 February 2009 18:16
To: xap_automation@xxxxxxx
Subject: RE: [xap_automation] RE: example VB.net xAP apps and docs?
Not quite "Hello World!" but this is a very simple vb.net app
that uses xFx
to print xAP messages to the console.
Module Module1
Private WithEvents myListener As
KCS.xAP.Framework.Transport.xAPHubClientListener
Sub Main()
myListener = New KCS.xAP.Framework.Transport.xAPHubClientListener()
myListener.Start()
Console.ReadLine()
End Sub
Sub rcvMsg(ByVal sender As Object, ByVal eventArgs As
KCS.xAP.Framework.Transport.xAPMessageEventArgs) Handles
myListener.eventMessageReceived
Console.WriteLine(eventArgs.Message.ToString())
End Sub
End Module
From: xap_automation@xxxxxxx [mailto:xap_automation@xxxxxxx]
On Behalf Of Kevin Hawkins
Sent: 16 February 2009 16:46
To: xap_automation@xxxxxxx
Subject: Re: [xap_automation] RE: example VB.net xAP apps and docs?
I have a xAP BSC Framework - which is basically all the code you need to
implement a BSC device model in VB6. It originally used Patricks OCX
but due to the memory leak in that I swapped it to the Intranet OCX and
updated it to xAP v1.3 It is effectively documented within the source
code but it still needs a bit of attention before being 'prime time' .
Works though... but is in in VB6. If that's any use to you then shout
- but it won't just convert to a VB.Net application and I don't want to
get involved in doing that either as xFX is far more suitable.
There are other VB6 applications around with source code availability -
and IIRC James has some Intranet OCX examples - the xAP bit is
effectively all done for you by the OCX :-)
Kevin
Paul Gale wrote:
>
> Ah OK - that sounds promising - I'll take a look at it.
>
> Are there any code samples for xAP VB6 apps?
>
> Paul.
>
> -----Original Message-----
> From: xap_automation@xxxxxxx
<mailto:xap_automation%40yahoogroups.com>
> <mailto:xap_automation%40yahoogroups.com>
> [mailto:xap_automation@xxxxxxx
<mailto:xap_automation%40yahoogroups.com>
> <mailto:xap_automation%40yahoogroups.com>]
On Behalf Of Kevin Hawkins
> Sent: 16 February 2009 16:15
> To: xap_automation@xxxxxxx
<mailto:xap_automation%40yahoogroups.com>
> <mailto:xap_automation%40yahoogroups.com>
> Subject: Re: [xap_automation] RE: example VB.net xAP apps and docs?
>
> For VB6 my recommendation would be to use James' xAP Intranet OCX
which
> is fairly well documented on the mi4 site - Plus I have used it so I
> will be able to help a little there too. You could use it from VB.Net
> too I believe....
>
> K
>
> Paul Gale wrote:
> >
> >
> >
> > Are there any docs for the VB6 based xAP framework - that may at
least
> > give me an idea of how much code is needed and the complexity,
even if
> > xFx is reasonably different???
> >
> > Cheers,
> >
> > Paul.
> >
> >
>
> ------------------------------------
>
> Yahoo! Groups Links
>
> __________ Information from ESET NOD32 Antivirus, version of virus
> signature database 3856 (20090216) __________
>
> The message was checked by ESET NOD32 Antivirus.
>
> http://www.eset.com
<http://www.eset.com>
>
>
------=_NextPart_000_0019_01C99065.3D8B5D50
Content-Type: text/html; charset=US-ASCII
Content-Transfer-Encoding: 7bit
<head>
<style type="text/css">
<!--
/* start of attachment style */
.ygrp-photo-title{
clear: both;
font-size: smaller;
height: 15px;
overflow: hidden;
text-align: center;
width: 75px;
}
div.ygrp-photo{
background-position: center;
background-repeat: no-repeat;
background-color: white;
border: 1px solid black;
height: 62px;
width: 62px;
}
div.photo-title
a,
div.photo-title a:active,
div.photo-title a:hover,
div.photo-title a:visited {
text-decoration: none;
}
div.attach-table div.attach-row {
clear: both;
}
div.attach-table div.attach-row div {
float: left;
/* margin: 2px;*/
}
p {
clear: both;
padding: 15px 0 3px 0;
overflow: hidden;
}
p span {
color: #628C2A;
}
div.ygrp-file {
width: 30px;
valign: middle;
}
div.attach-table div.attach-row div div a {
text-decoration: none;
}
div.attach-table div.attach-row div div span {
font-weight: normal;
}
div.ygrp-file-title {
font-weight: bold;
}
/* end of attachment style */
-->
</style>
</head>
<html xmlns:v="urn:schemas-microsoft-com:vml"
xmlns:o="urn:schemas-microsoft-com:office:office"
xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml"
xmlns="http://www.w3.org/TR/REC-html40">
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html;
charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered
medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<style>
<!--
/* Font Definitions */
@font-face
{font-family:Wingdings;
panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
@font-face
{font-family:Verdana;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p
{mso-style-priority:99;
mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
code
{mso-style-priority:99;
font-family:"Courier New";}
pre
{mso-style-priority:99;
mso-style-link:"HTML Preformatted Char";
margin:0cm;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";}
tt
{mso-style-priority:99;
font-family:"Courier New";}
span.left
{mso-style-name:left;}
span.bld
{mso-style-name:bld;}
p.ad, li.ad, div.ad
{mso-style-name:ad;
mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
p.ad1, li.ad1, div.ad1
{mso-style-name:ad1;
mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
p.ad2, li.ad2, div.ad2
{mso-style-name:ad2;
mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
p.ad3, li.ad3, div.ad3
{mso-style-name:ad3;
mso-margin-top-alt:auto;
margin-right:0cm;
margin-bottom:7.5pt;
margin-left:0cm;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
span.HTMLPreformattedChar
{mso-style-name:"HTML Preformatted Char";
mso-style-priority:99;
mso-style-link:"HTML Preformatted";
font-family:Consolas;}
p.replbq, li.replbq, div.replbq
{mso-style-name:replbq;
margin:3.0pt;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
span.yshortcuts
{mso-style-name:yshortcuts;}
p.ad4, li.ad4, div.ad4
{mso-style-name:ad4;
mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
p.ad5, li.ad5, div.ad5
{mso-style-name:ad5;
mso-margin-top-alt:auto;
margin-right:0cm;
margin-bottom:7.5pt;
margin-left:0cm;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
p.ad6, li.ad6, div.ad6
{mso-style-name:ad6;
mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
span.yshortcuts1
{mso-style-name:yshortcuts1;
font-family:"Verdana","sans-serif";
font-weight:bold;}
span.yshortcuts2
{mso-style-name:yshortcuts2;
font-family:"Verdana","sans-serif";
color:#1E66AE;
font-weight:normal;}
span.EmailStyle35
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page Section1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.Section1
{page:Section1;}
/* List Definitions */
@list l0
{mso-list-id:2047412310;
mso-list-template-ids:-354880140;}
@list l0:level1
{mso-level-number-format:bullet;
mso-level-text:\F0B7;
mso-level-tab-stop:36.0pt;
mso-level-number-position:left;
text-indent:-18.0pt;
mso-ansi-font-size:10.0pt;
font-family:Symbol;}
ol
{margin-bottom:0cm;}
ul
{margin-bottom:0cm;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body bgcolor=white lang=EN-GB link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><span
style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Going a little further, this enhanced reader application
shows
how to start picking apart
messages:<o:p></o:p></span></p>
<p class=MsoNormal><span
style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span
style='font-size:10.0pt;
font-family:"Courier
New";color:blue'>Imports</span><span style='font-size:
10.0pt;font-family:"Courier New"'>
KCS.xAP.Framework.Transport<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span
style='font-size:10.0pt;
font-family:"Courier
New";color:blue'>Imports</span><span style='font-size:
10.0pt;font-family:"Courier New"'>
KCS.xAP.Framework.Message<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span
style='font-size:10.0pt;
font-family:"Courier
New"'><o:p> </o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span
style='font-size:10.0pt;
font-family:"Courier
New";color:blue'>Module</span><span
style='font-size:10.0pt;
font-family:"Courier New"'>
xAPReader<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span
style='font-size:10.0pt;
font-family:"Courier
New"'><o:p> </o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span
style='font-size:10.0pt;
font-family:"Courier New"'>
<span style='color:blue'>Dim</span> <span
style='color:blue'>WithEvents</span> listener <span
style='color:blue'>As</span>
<span style='color:blue'>New</span>
xAPHubClientListener<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span
style='font-size:10.0pt;
font-family:"Courier
New"'><o:p> </o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span
style='font-size:10.0pt;
font-family:"Courier New"'>
<span style='color:blue'>Sub</span>
Main()<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span
style='font-size:10.0pt;
font-family:"Courier
New"'>
Console.WriteLine(<span style='color:#A31515'>"xAP
message reader (VB.Net) - hit return to
exit"</span>)<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span
style='font-size:10.0pt;
font-family:"Courier
New"'>
Console.WriteLine(<span
style='color:blue'>String</span>.Format(<span
style='color:#A31515'>"My address={0},
UID={1}"</span>,
listener.Heartbeat.Source,
listener.Heartbeat.UID))<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span
style='font-size:10.0pt;
font-family:"Courier
New"'>
listener.Start()<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span
style='font-size:10.0pt;
font-family:"Courier
New"'>
Console.ReadLine()<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span
style='font-size:10.0pt;
font-family:"Courier New"'>
<span style='color:blue'>End</span> <span
style='color:blue'>Sub<o:p></o:p></span></span></p>
<p class=MsoNormal style='text-autospace:none'><span
style='font-size:10.0pt;
font-family:"Courier
New";color:blue'><o:p> </o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span
style='font-size:10.0pt;
font-family:"Courier New"'>
<span style='color:blue'>Sub</span>
Listener_EventHandler(<span style='color:blue'>ByVal</span>
sender <span
style='color:blue'>As</span> <span
style='color:blue'>Object</span>, <span
style='color:blue'>ByVal</span> msgEvent <span
style='color:blue'>As</span>
xAPMessageEventArgs) <span style='color:blue'>Handles</span>
listener.eventMessageReceived<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span
style='font-size:10.0pt;
font-family:"Courier
New"'><o:p> </o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span
style='font-size:10.0pt;
font-family:"Courier
New"'>
<span style='color:blue'>Dim</span> msg <span
style='color:blue'>As</span> xAPMessage =
msgEvent.Message<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span
style='font-size:10.0pt;
font-family:"Courier
New"'>
<span style='color:blue'>Dim</span> hdr <span
style='color:blue'>As</span> xAPHeaderBase =
msg.Header<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span
style='font-size:10.0pt;
font-family:"Courier
New"'>
<span style='color:blue'>Dim</span> body <span
style='color:blue'>As</span> xAPMessageBody =
msg.Body<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span
style='font-size:10.0pt;
font-family:"Courier
New"'><o:p> </o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span
style='font-size:10.0pt;
font-family:"Courier
New"'>
Console.WriteLine(<span
style='color:blue'>String</span>.Format(<span
style='color:#A31515'>"Received {0} from {1}, UID
{2}"</span>,
hdr.Class, hdr.Source,
hdr.UID))<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span
style='font-size:10.0pt;
font-family:"Courier
New"'><o:p> </o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span
style='font-size:10.0pt;
font-family:"Courier
New"'>
<span style='color:blue'>For</span> <span
style='color:blue'>Each</span> block <span
style='color:blue'>As</span>
xAPMessageBlock <span style='color:blue'>In</span>
body<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span
style='font-size:10.0pt;
font-family:"Courier
New"'><o:p> </o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span
style='font-size:10.0pt;
font-family:"Courier
New"'>
Console.WriteLine(<span
style='color:blue'>String</span>.Format(<span
style='color:#A31515'>"
Block: {0}"</span>,
block.Name))<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span
style='font-size:10.0pt;
font-family:"Courier
New"'><o:p> </o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span
style='font-size:10.0pt;
font-family:"Courier
New"'>
<span style='color:blue'>For</span> <span
style='color:blue'>Each</span> parameter <span
style='color:blue'>As</span> <span
style='color:blue'>String</span> <span
style='color:blue'>In</span>
block.Keys<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span
style='font-size:10.0pt;
font-family:"Courier
New"'>
<span style='color:blue'>Dim</span>
v <span style='color:blue'>As</span> xAPPairValue =
block(parameter)<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span
style='font-size:10.0pt;
font-family:"Courier
New"'>
Console.WriteLine(<span
style='color:blue'>String</span>.Format(<span
style='color:#A31515'>"
{0} = {1}"</span>, parameter,
v.Value))<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span
style='font-size:10.0pt;
font-family:"Courier
New"'>
<span
style='color:blue'>Next<o:p></o:p></span></span></p>
<p class=MsoNormal style='text-autospace:none'><span
style='font-size:10.0pt;
font-family:"Courier
New"'>
<span
style='color:blue'>Next<o:p></o:p></span></span></p>
<p class=MsoNormal style='text-autospace:none'><span
style='font-size:10.0pt;
font-family:"Courier New"'>
<span style='color:blue'>End</span> <span
style='color:blue'>Sub<o:p></o:p></span></span></p>
<p class=MsoNormal><span
style='font-size:10.0pt;font-family:"Courier New";
color:blue'>End</span><span
style='font-size:10.0pt;font-family:"Courier New"'>
<span
style='color:blue'>Module<o:p></o:p></span></span></p>
<p class=MsoNormal><span
style='font-size:10.0pt;font-family:"Courier New";
color:blue'><o:p> </o:p></span></p>
<p class=MsoNormal><span
style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span
style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<div style='border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm
4.0pt'>
<div>
<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm
0cm 0cm'>
<p class=MsoNormal><b><span lang=EN-US
style='font-size:10.0pt;font-family:
"Tahoma","sans-serif"'>From:</span></b><span
lang=EN-US style='font-size:10.0pt;
font-family:"Tahoma","sans-serif"'>
xap_automation@xxxxxxx
[mailto:xap_automation@xxxxxxx]
<b>On Behalf Of </b>Edward Pearson<br>
<b>Sent:</b> 16 February 2009 18:16<br>
<b>To:</b> xap_automation@xxxxxxx<br>
<b>Subject:</b> RE: [xap_automation] RE: example VB.net xAP
apps and docs?<o:p></o:p></span></p>
</div>
</div>
<p class=MsoNormal><o:p> </o:p></p>
<div id=ygrp-mlmsg>
<div id=ygrp-msg>
<div id=ygrp-text>
<div>
<p class=MsoNormal
style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
style='font-size:11.0pt;color:#1F497D'>Not quite “Hello
World!” but this is a
very simple vb.net app that uses xFx to print xAP messages to the
console…</span><o:p></o:p></p>
<p class=MsoNormal
style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
style='font-size:11.0pt;color:#1F497D'> </span><o:p></o:p></p>
<p class=MsoNormal
style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
style='font-size:10.0pt;font-family:Consolas;color:blue'>Module</span><span
style='font-size:10.0pt;font-family:Consolas'>
Module1</span><o:p></o:p></p>
<p class=MsoNormal
style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
style='font-size:10.0pt;font-family:Consolas'>
<span
style='color:blue'>Private</span> <span
style='color:blue'>WithEvents</span>
myListener <span style='color:blue'>As</span>
KCS.xAP.Framework.Transport.xAPHubClientListener</span><o:p></o:p></p>
<p class=MsoNormal
style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
style='font-size:10.0pt;font-family:Consolas'> </span><o:p></o:p></p>
<p class=MsoNormal
style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
style='font-size:10.0pt;font-family:Consolas'>
<span
style='color:blue'>Sub</span>
Main()</span><o:p></o:p></p>
<p class=MsoNormal
style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
style='font-size:10.0pt;font-family:Consolas'>
myListener = <span style='color:blue'>New</span>
KCS.xAP.Framework.Transport.xAPHubClientListener()</span><o:p></o:p></p>
<p class=MsoNormal
style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
style='font-size:10.0pt;font-family:Consolas'>
myListener.Start()</span><o:p></o:p></p>
<p class=MsoNormal
style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
style='font-size:10.0pt;font-family:Consolas'>
Console.ReadLine()</span><o:p></o:p></p>
<p class=MsoNormal
style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
style='font-size:10.0pt;font-family:Consolas'>
<span
style='color:blue'>End</span> <span
style='color:blue'>Sub</span></span><o:p></o:p></p>
<p class=MsoNormal
style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
style='font-size:10.0pt;font-family:Consolas;color:blue'> </span><o:p></o:p></p>
<p class=MsoNormal
style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
style='font-size:10.0pt;font-family:Consolas'>
<span
style='color:blue'>Sub</span> rcvMsg(<span
style='color:blue'>ByVal</span>
sender <span style='color:blue'>As</span> <span
style='color:blue'>Object</span>,
<span style='color:blue'>ByVal</span> eventArgs <span
style='color:blue'>As</span>
KCS.xAP.Framework.Transport.xAPMessageEventArgs) <span
style='color:blue'>Handles</span>
myListener.eventMessageReceived</span><o:p></o:p></p>
<p class=MsoNormal
style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
style='font-size:10.0pt;font-family:Consolas'>
Console.WriteLine(eventArgs.Message.ToString())</span><o:p></o:p></p>
<p class=MsoNormal
style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
style='font-size:10.0pt;font-family:Consolas'>
<span
style='color:blue'>End</span> <span
style='color:blue'>Sub</span></span><o:p></o:p></p>
<p class=MsoNormal
style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
style='font-size:10.0pt;font-family:Consolas;color:blue'>End</span><span
style='font-size:10.0pt;font-family:Consolas'> <span
style='color:blue'>Module</span></span><o:p></o:p></p>
<p class=MsoNormal
style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
style='font-size:11.0pt;color:#1F497D'> </span><o:p></o:p></p>
<p class=MsoNormal
style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
style='font-size:11.0pt;color:#1F497D'> </span><o:p></o:p></p>
<div style='border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm
0cm'>
<div>
<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:0cm 0cm
0cm 0cm'>
<p class=MsoNormal
style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><b><span
lang=EN-US style='font-size:10.0pt'>From:</span></b><span
lang=EN-US
style='font-size:10.0pt'> xap_automation@xxxxxxx [mailto:xap_automation@xxxxxxx]
<b>On Behalf Of </b>Kevin Hawkins<br>
<b>Sent:</b> 16 February 2009 16:46<br>
<b>To:</b> xap_automation@xxxxxxx<br>
<b>Subject:</b> Re: [xap_automation] RE: example VB.net xAP
apps and docs?</span><o:p></o:p></p>
</div>
</div>
<p class=MsoNormal
style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <o:p></o:p></p>
<div id=ygrp-mlmsg>
<div id=ygrp-msg>
<div id=ygrp-text>
<p>I have a xAP BSC Framework - which is basically all the code you
need to <br>
implement a BSC device model in VB6. It originally used Patricks OCX
<br>
but due to the memory leak in that I swapped it to the Intranet OCX and
<br>
updated it to xAP v1.3 It is effectively documented within the source
<br>
code but it still needs a bit of attention before being 'prime time' .
<br>
Works though... but is in in VB6. If that's any use to you then shout
<br>
- but it won't just convert to a VB.Net application and I don't want to
<br>
get involved in doing that either as xFX is far more suitable.<br>
<br>
There are other VB6 applications around with source code availability -
<br>
and IIRC James has some Intranet OCX examples - the xAP bit is <br>
effectively all done for you by the OCX :-)<br>
<br>
Kevin<br>
<br>
Paul Gale wrote:<br>
><br>
> Ah OK - that sounds promising - I'll take a look at it.<br>
><br>
> Are there any code samples for xAP VB6 apps?<br>
><br>
> Paul.<br>
><br>
> -----Original Message-----<br>
> From: <a href="mailto:xap_automation%40yahoogroups.com">xap_automation@xxxxxxx</a>
<br>
> <mailto:xap_automation%40yahoogroups.com>
<br>
> [mailto:<a href="mailto:xap_automation%40yahoogroups.com">xap_automation@xxxxxxx</a>
<br>
> <mailto:xap_automation%40yahoogroups.com>]
On Behalf Of Kevin
Hawkins<br>
> Sent: 16 February 2009 16:15<br>
> To: <a href="mailto:xap_automation%40yahoogroups.com">xap_automation@xxxxxxx</a>
<br>
> <mailto:xap_automation%40yahoogroups.com><br>
> Subject: Re: [xap_automation] RE: example VB.net xAP apps and
docs?<br>
><br>
> For VB6 my recommendation would be to use James' xAP Intranet OCX
which<br>
> is fairly well documented on the mi4 site - Plus I have used it so
I<br>
> will be able to help a little there too. You could use it from
VB.Net<br>
> too I believe....<br>
><br>
> K<br>
><br>
> Paul Gale wrote:<br>
> ><br>
> ><br>
> ><br>
> > Are there any docs for the VB6 based xAP framework - that
may at
least<br>
> > give me an idea of how much code is needed and the
complexity, even
if<br>
> > xFx is reasonably different???<br>
> ><br>
> > Cheers,<br>
> ><br>
> > Paul.<br>
> ><br>
> ><br>
><br>
> ------------------------------------<br>
><br>
> Yahoo! Groups Links<br>
><br>
> __________ Information from ESET NOD32 Antivirus, version of virus
<br>
> signature database 3856 (20090216) __________<br>
><br>
> The message was checked by ESET NOD32 Antivirus.<br>
><br>
> <a href="http://www.eset.com">http://www.eset.com</a>
<<a
href="http://www.eset.com">http://www.eset.com</a>><br>
><br>
> <o:p></o:p></p>
</div>
</div>
</div>
</div>
</div>
</div>
<div>
<p class=MsoNormal><span
style='color:white'><o:p></o:p></span></p>
</div>
</div>
</div>
<!-- **begin egp html banner** -->
<br>
<br>
<!-- **end egp html banner** -->
<div width="1" style="color: white; clear:
both;"/>__._,_.___</div>
<!-- Start Recommendations -->
<!-- End Recommendations -->
<!-- **begin egp html banner** -->
<img src="http://geo.yahoo.com/serv?s=97476590/grpId=9674343/grpspId=1705007709/msgId=4255/stime=1234809294"
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_automation/join;_ylc=X3oDMTJmajA2OGN2BF9TAzk3NDc2NTkwBGdycElkAzk2NzQzNDMEZ3Jwc3BJZAMxNzA1MDA3NzA5BHNlYwNmdHIEc2xrA3N0bmdzBHN0aW1lAzEyMzQ4MDkyOTQ-">Change
settings via the Web</a> (Yahoo! ID required) <br>
Change settings via email: <a href="mailto:xap_automation-digest@xxxxxxx?subject=Email
Delivery: Digest">Switch delivery to Daily Digest</a> <a
href = "mailto:xap_automation-fullfeatured@xxxxxxx?subject=Change
Delivery Format: Fully Featured">Switch to Fully Featured</a>
<br>
<a href="http://groups.yahoo.com/group/xap_automation;_ylc=X3oDMTJkZWMyc2RjBF9TAzk3NDc2NTkwBGdycElkAzk2NzQzNDMEZ3Jwc3BJZAMxNzA1MDA3NzA5BHNlYwNmdHIEc2xrA2hwZgRzdGltZQMxMjM0ODA5Mjk0">
Visit Your Group
</a>
<a href="http://docs.yahoo.com/info/terms/">
Yahoo! Groups Terms of Use
</a>
<a href="mailto:xap_automation-unsubscribe@xxxxxxx?subject=Unsubscribe">
Unsubscribe
</a>
<br>
</div>
<br>
<!-- **end egp html banner** -->
<div style="color: white; clear:
both;"/>__,_._,___</div>
</body>
</html>
------=_NextPart_000_0019_01C99065.3D8B5D50--
xAP_Automation Main Index |
xAP_Automation Thread Index |
xAP_Automation Home |
Archives Home
|