W406-CE User’s Manual
Application Development
Visual C# Examples
A device .Net CF 2.0 class library (mxdevice.dll) is provided to simplify application development
with Visual Studio 2005 tools. This library covers the .Net CF Class Library for the buzzer and
digital I/O devices. To link the library with your Visual Studio 2005 project environment, perform
the following steps from your Visual Studio 2005 tool:
1.
Copy the library file
mxdevice.dll
to any folder on your local disk.
This file can be found on the product CD in the folder
\sdk\dot Net Compact Framework
Library
, or the file can be downloaded from the FTP site listed in the NOTE at the bottom of this
page.
2.
Open the Visual Studio 2005 IDE tool, and then add a new C
# Smart device console
application.
3.
Enter the project name and location path.
4.
In the
Solution Explorer View
, add
mxdevice.dll
to the reference section.
5.
Click
OK
.
ATTENTION
1.
The programming examples for Moxa embedded computers are frequently updated. The
latest examples can be downloaded from the following FTP site:
ftp://esource.moxa.com/moxasys/WinCE_Examples/C#.
2.
You may need to copy the “mxdevice.dll” within the example when you try to execute the
program.
B-21