
72
Chapter 7: Creating a Microsoft Windows CE application for Matrox Iris GT
• When you create a console application
1
using MIL for Microsoft Windows CE,
use the following standard C runtime entry point:
-
mosMain
. Can receive both ASCII and Unicode strings as arguments. The first
function in your program should be
mosMain()
.
• MIL for Microsoft Windows CE accepts Unicode parameters. For this reason, all
text inputs should be converted to Unicode using the
MIL_TEXT()
macro, the
MIL_TEXT_CHAR data type, or the MIL_TEXT_PTR data type. For example:
For more information about creating a portable MIL application, refer to the
sections on portability found in the
Building an application
chapter of the
MIL
User Guide
.
Configuring the Microsoft Windows CE
Connection Manager
Before you can build and transfer your application, you need to configure a
connection between your Matrox Iris GT and Microsoft Visual Studio on your
development computer. This is done using the
Windows CE Connection Manager
,
a tool included in Microsoft Visual Studio.
1. Microsoft Windows CE supports a console window, and therefore supports the devel-
opment of console applications that use text-based I/O. The application is created
without a form, and therefore cannot receive windows messages.
int mosMain(int argc, tchar* argv[])
MgraText(GraphContextID,MIL_TEXT(“Hello world!”));
MIL_TEXT_CHAR file name[128];
MIL_TEXT_PTR pString = file name;
Summary of Contents for Iris GT MIL
Page 12: ......
Page 28: ...28 Chapter 2 Powering and connecting to your Matrox Iris GT...
Page 40: ...40 Chapter 3 Configuring your Matrox Iris GT to work on a network...
Page 48: ...48 Chapter 4 Configuring your Matrox Iris GT to work with your computer directly...
Page 58: ...58 Chapter 5 Accessing Matrox Iris GT...
Page 88: ...88 Appendix A Glossary...
Page 152: ...152 Appendix F The breakout board...
Page 158: ...158 Appendix G Reading the LEDs...
Page 238: ...238 Appendix I Matrox Iris portal website details...
Page 250: ......
Page 256: ......