473,325 Members | 2,860 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,325 software developers and data experts.

IRDA with VB2005

Hi:

I am trying to write an app in VB2005 that can send data to another device
via the IR port on my laptop.

I do not want to use Comm Port workarounds.

Does anyone know of code examples, or any clue how this can be done.

Help will be appreciated.

Jan 4 '06 #1
4 4192
Use the IrDAClient class, whether the one in the .NETCF,
http://msdn.microsoft.com/library/de...classtopic.asp,
or Peter Foot's enhanced one, which also works on the full Framework,
http://32feet.net/library/InTheHand....rDAClient.html

I've example code of the latter, for IrCOMM and IrLPT usage, on my website,
see http://www.alanjmcf.me.uk/comms/infr...iIrLpt.cs.html and
http://www.alanjmcf.me.uk/comms/infr...IrComm.vb.html, the
latter being in VB.NET.
--
Alan J. McFarlane
http://www.alanjmcf.me.uk/
Please follow-up in the newsgroup for the benefit of all.
"Roger Allen" wrote:
Hi:

I am trying to write an app in VB2005 that can send data to another device
via the IR port on my laptop.

I do not want to use Comm Port workarounds.

Does anyone know of code examples, or any clue how this can be done.

Help will be appreciated.

Jan 5 '06 #2
Many thanks for the leads - I'll let you know what happens
"Alan J. McFarlane" <al******@yahoo.com.INVALID> wrote in message
news:32**********************************@microsof t.com...
Use the IrDAClient class, whether the one in the .NETCF,
http://msdn.microsoft.com/library/de...classtopic.asp,
or Peter Foot's enhanced one, which also works on the full Framework,
http://32feet.net/library/InTheHand....rDAClient.html

I've example code of the latter, for IrCOMM and IrLPT usage, on my
website,
see http://www.alanjmcf.me.uk/comms/infr...iIrLpt.cs.html
and
http://www.alanjmcf.me.uk/comms/infr...IrComm.vb.html, the
latter being in VB.NET.
--
Alan J. McFarlane
http://www.alanjmcf.me.uk/
Please follow-up in the newsgroup for the benefit of all.
"Roger Allen" wrote:
Hi:

I am trying to write an app in VB2005 that can send data to another
device
via the IR port on my laptop.

I do not want to use Comm Port workarounds.

Does anyone know of code examples, or any clue how this can be done.

Help will be appreciated.

Jan 5 '06 #3
Alan:
I just downloaded and installed InThehand v1.6.5.1222. I'm using VS2005

The code below generates the following error:

Error 1 Reference required to assembly 'System, Version=1.0.5000.0,
Culture=neutral, PublicKeyToken=969db8053d3322ac, Retargetable=Yes'
containing the type 'System.Net.Sockets.Socket'. Add one to your project.
..........

Does this mean there is a compatibility issue with VS2005 and/or .netV2?

Any advice will be much appreciated

Roger
Option Strict On

Option Explicit On

Imports System

Imports System.Text

Imports System.Net.Sockets.Socket

Imports InTheHand.Net.Sockets

Public Class frmMain

Const SelectPeerNum As Integer = 0

Const ServiceName As String = "IrDA:IRCOMM"

Private Sub frmMain_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load

Dim Cli As New IrDAClient

Cli.Client()

End Sub

End Class

"Alan J. McFarlane" <al******@yahoo.com.INVALID> wrote in message
news:32**********************************@microsof t.com...
Use the IrDAClient class, whether the one in the .NETCF,
http://msdn.microsoft.com/library/de...classtopic.asp,
or Peter Foot's enhanced one, which also works on the full Framework,
http://32feet.net/library/InTheHand....rDAClient.html

I've example code of the latter, for IrCOMM and IrLPT usage, on my
website,
see http://www.alanjmcf.me.uk/comms/infr...iIrLpt.cs.html
and
http://www.alanjmcf.me.uk/comms/infr...IrComm.vb.html, the
latter being in VB.NET.
--
Alan J. McFarlane
http://www.alanjmcf.me.uk/
Please follow-up in the newsgroup for the benefit of all.
"Roger Allen" wrote:
Hi:

I am trying to write an app in VB2005 that can send data to another
device
via the IR port on my laptop.

I do not want to use Comm Port workarounds.

Does anyone know of code examples, or any clue how this can be done.

Help will be appreciated.

Jan 6 '06 #4
In article news:OE**************@tk2msftngp13.phx.gbl, Roger Allen
wrote:
I just downloaded and installed InThehand v1.6.5.1222. I'm using
VS2005

The code below generates the following error:
Error 1 Reference required to assembly 'System, Version=1.0.5000.0,
Culture=neutral, PublicKeyToken=969db8053d3322ac, Retargetable=Yes'
containing the type 'System.Net.Sockets.Socket'. Add one to your
project. .........

Does this mean there is a compatibility issue with VS2005 and/or
.netV2?
Yes and no. It appears that the 32feet.NET library is compiled
against the .NET CF v1. But this isn't a problem at runtime as the
reference is "Retargetable" and through a feature called unification
(http://msdn2.microsoft.com/en-us/library/db7849ey.aspx) the runtime
will use its own version of the framework, e.g. if the v2 runtime loads
the library it will redirect references for v1 assemblies to its own.

Now, at compile time; with the CS compiler(s) there's no problem either.
A similar thing seems to happen; it sees the reference to the older
framework assembly, and just continues using its own framework version.

However with the VB compiler this seems not to be the case and this
error is reported. (And unsurprisingly trying supplying an explicit
reference to the old assembly makes the compiler even more confused; at
least when I try with a 1.1 version [...\v2.0.50727\vbc xxxx.vb
/r:System /r:...\v1.1.4322\System.dll]; complaining of ambiguous
references.)

So I guess this is a bug in the VB compiler, but I'm not really expert
enough to know for sure.

Anyone here have any comment?

I you get no answer here, then try posting in http://32feet.net/forums/,
ahh wait I see you've done so already. :-)
(http://32feet.net/forums/452/ShowPost.aspx)
Const ServiceName As String = "IrDA:IRCOMM"

(Should be "IrDA:IrCOMM").
--
Alan J. McFarlane
http://www.alanjmcf.me.uk/
Please follow-up in the newsgroup for the benefit of all.

Jan 8 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: William Ryan | last post by:
If you download the code for MS Press Microsoft .NET Compact Framework by Wigley and Wheelwright in Chapter 11 there's code to handle this. If you haven't bought the book----TRUST ME, BUY IT. In...
0
by: shawkee | last post by:
Anyone knows how to do IrDA communication in .NET? I have seens sample code instantiating IRClient using .NET but can't find this class in .NET framework I have installed (Ver 1.0, 1.1). I believe...
1
by: Ajay Mahale | last post by:
Is the irda socket based api for windows platform specific ..the dotnet framework (non-compact :)) doesnot seem to support IRDA based communication.Can any one give me a few hinters as to how to...
0
by: Sirtap | last post by:
Hello I have a computer equipped in IrDA port and I'm wandering how to make use of it in my program under WindowsXP. There's Socket class, which has a constructor, where I can pass something...
2
by: Jasmina | last post by:
I am working on an application that will do file exchange (send/receive) between Pocket PC and PC (laptop) via IrDA. I am using VB .NET. On the Pocket PC side I use System.Net.IrDA and...
3
by: Robb Gilmore | last post by:
Hi, I need to write a C#.NET PC application that can talk to a non-windows device using a USB-IrDA adapter. I have been searching for information about how to do this, and the bext info I have...
1
by: Byers | last post by:
Hi! I've download the simple code here: http://msdn2.microsoft.com/en-us/library/system.net.sockets.irdaclient.aspx when I try to build it,I can't found system.net.irda.dll in my .net framework.I...
6
by: Dave | last post by:
I cannot seem to locate the System.Net.IrDA namespace in C# express. Where could I get this dll? -- L. A. Jones
4
by: hjgvhv uhhgvjuhv | last post by:
I am trying my hand at IrDA software. Google came up with so many hits, I am running in circles. Does anyone have any web site with decent explanation of IrDA operation ? Thanks donald
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.