Inside and Out...

An attempt to understand technology better...

  Home  |   Contact  |   Syndication    |   Login
  160 Posts | 0 Stories | 12 Comments | 181 Trackbacks

News


WinToolZone - Spelunking Microsoft Technologies
I work as a developer on the Common Language Runtime (CLR) team, specifically in the areas of exception handling and CLR hosting.
Disclaimer

The information in this weblog is provided "AS IS" with no warranties, and confers no rights. This weblog does not represent the thoughts, intentions, plans or strategies of my employer. It is solely my opinion. Inappropriate comments will be deleted at the authors discretion. All code samples are provided "AS IS" without warranty of any kind, either express or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose.

Twitter





Tag Cloud


Archives

Post Categories

Image Galleries

Links

Anyone who has worked with .NET Compact Framework for sometime will know that the IrDA support is provided by the same - you can write applications that can act as IrDA listeners or clients - basically, do whatever you want using IrDA as long as you are using the .NET Compact Framework.

But, how about using IrDA in regular WinForms applications?

Well, until I just stumbled upon the trick I will just tell you [it's really a no-brainer], one would need to write WinSock based IrDA applications for the regular desktop for the IrDA .NET CF client. But not anymore...

I am in the process of writing one such client server application based on IrDA and try out .NET Framework 2.0 capabilities and needed to use IrDA in WinForms - and didn't want to use WinSock. After much search on Google and seeing the similar question being asked by many, I finally stumbled upon the following solution that is working for me.

In my VS 2005 installation, the Compact Framework SDK assemblies reside at E:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\CompactFramework\WindowsCE. This folder also contains System.Net.IrDA.dll assembly. All you have to do in your WinForms application is to place a reference to this assembly and the magic happens!

What say :) ?

posted on Sunday, September 26, 2004 11:19 PM

Feedback

# re: Want to use IrDA in WinForms? 10/22/2004 12:13 AM Manu
Can I have a small sample app for regular (desktop) WinForms please?

Thanks in advance :)

Manu

# re: Want to use IrDA in WinForms? 12/20/2004 10:14 PM saad
i need to know how to use irda.dll in microsoft .net 2003

# re: Want to use IrDA in WinForms? 3/1/2005 8:05 PM Toby Couchman
I made one for WinForms, search for IrDA in the GotDotNet workspaces

# re: Want to use IrDA in WinForms? 12/29/2005 1:23 PM quin
hello every body i want a sample of your application if its possible.
thank you

my email : quinzaki01@yahoo.fr

# re: Want to use IrDA in WinForms? 5/17/2006 7:53 PM amygal
System.Net.IrDA.dll assembly is not in
C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\CompactFramework\WindowsCE.
Why and how to solve this?

# re: Want to use IrDA in WinForms? 11/6/2006 11:44 AM Dom O'Dierno
It is actually in X:\Program Files\Microsoft Visual Studio 8\Smart Devices\SDK\2.0\2.0\Windows CE or something to that effect. You could always just run a search on it.

# re: Want to use IrDA in WinForms? 11/23/2006 4:45 AM aji_java
Does this dll available in MVS2005 Express Edition with .net framework 2.0? Because I couldn't find this assembly . Thanks.

# re: Want to use IrDA in WinForms? 12/2/2006 1:43 PM Dan
Please help me.. I dont know why its calling this error:

C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Csc.exe /noconfig /nowarn:1701,1702 /nostdlib+ /errorreport:prompt /warn:4 /define:DEBUG;TRACE;PocketPC /win32res:"C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\bin\hiDPI.res" /reference:"C:\Program Files\Microsoft Visual Studio 8\SmartDevices\SDK\CompactFramework\2.0\v2.0\WindowsCE\mscorlib.dll" /reference:"C:\Program Files\Microsoft Visual Studio 8\SmartDevices\SDK\CompactFramework\2.0\v2.0\WindowsCE\System.dll" /reference:"C:\Program Files\Microsoft Visual Studio 8\SmartDevices\SDK\CompactFramework\2.0\v2.0\WindowsCE\System.Net.IrDA.dll" /reference:"C:\Program Files\Microsoft Visual Studio 8\SmartDevices\SDK\CompactFramework\2.0\v2.0\WindowsCE\System.Windows.Forms.dll" /reference:"C:\Program Files\Microsoft Visual Studio 8\SmartDevices\SDK\CompactFramework\2.0\v2.0\WindowsCE\System.Xml.dll" /debug+ /debug:full /filealign:512 /optimize- /out:obj\Debug\DeviceApplication3.exe /resource:obj\Debug\DeviceApplication3.Form1.resources /resource:obj\Debug\DeviceApplication3.Properties.Resources.resources /target:winexe Form1.cs Form1.Designer.cs Program.cs Properties\AssemblyInfo.cs Properties\Resources.Designer.cs
C:\Documents and Settings\Daniel\Dokumenty\Visual Studio 2005\Projects\DeviceApplication3\DeviceApplication3\Form1.cs(3,18): error CS0234: The type or namespace name 'IrDA' does not exist in the namespace 'System.Net' (are you missing an assembly reference?)

Compile complete -- 1 errors, 0 warnings
========== Build: 0 succeeded or up-to-date, 1 failed, 0 skipped ==========

Comments have been closed on this topic.