[Message Prev][Message
Next][Thread Prev][Thread Next][Message
Index][Thread Index]
Re: Intranet OCX 0.4 released
On Tue, 11 Oct 2005 21:39:15 +0100, James <james@xxxxxxx> wrote:
>I am assuming you can get the raw xAP message from the xFx libraries,
Me! Me! I can answer that!! <waves arm in the air frantically>
Sure you can.
class xAPMessage has a property named Raw. This returns a
xAPRawMessage object. This is essentially the raw text that arrived on
receipt of a xAP message from the network. It's what gets cracked
apart and stored internally to xFx in a xAPMessage object and its
related classes. It's from this raw data object that xAPViewer can
also display the raw bytes of an inbound xAP message in its popup
message view windows.
You just need to go ToString() on the xAPRawMessage object to get the
original xAP message text, or use the Text and Length properties.
After that you can pass it on to anything you like really, including a
public OCX function once you've added xAPIntranet.OCX as a reference
to the .NET application. I'm just having a peek at it in the object
browser as I type.
I also converted your sample app to .NET to give it a quick whirl, but
there's a compiler error, and it's way past my bedtime now so the
brain has turned itself off.
Me.xAP_Intranet1 = New xAPIntranetOCX.xAP_Intranet
The error is:
'xAPIntranetOCX.xAP_IntranetClass.Private Sub New()' is not accessible in
this context because it is 'Private'.
I also had to change the reference to the xAPIntranet.OCX file.
HTH,
S
--
Stuart Booth <stuart@xxxxxxx>
xAPFramework.NET - a xAP software development framework for .NET
http://www.xapautomation.org/
http://www.xapframework.net/
xAP_Development Main Index |
xAP_Development Thread Index |
xAP_Development Home |
Archives Home
|