background image

25 

3.3 Visual C++ Development Notes 

Visual C++ development may be preferred by advanced developers. The following is a quick 
startup guide to allow developers to ensure the CUWIN environment is working correctly. 
 

1. Click File > New Project on the menu bar. 

     

2. Choose “Smart Device” in the “Project types” box. Then choose “MFC Smart Device 
Application” from the “Templates” box. Type the desired name in the “Name” box.     
 

 
 
 

Summary of Contents for CUWIN

Page 1: ...1 TOUCH CONTROLLER CUWIN User Manual...

Page 2: ...e by allowing the use of cross platform NET functions If developing for the Net Framework Visual Studio 2005 Standard and higher or Visual Studio 2008 Professional and higher must be used as these edi...

Page 3: ...3 1 1 Overview...

Page 4: ...232 Ports COM1 COM3 and 1 RS 485 port COM1 and COM1 is can be switched to RS 485 or RS 232 There are 4 terminals for RS 485 Port The first one if for plus and the last one is for minus The second and...

Page 5: ...5 1 2 Dimensions CUWIN3500...

Page 6: ...6 CUWIN3200...

Page 7: ...7 CUWIN4300...

Page 8: ...ith the rear portion of the device extending through a panel cutout After assembling the brackets as shown below insert the side hooks into the appropriate mounting holes on the top and bottom of the...

Page 9: ...anel Serial 2 RS232 only 1 RS232 RS485 switchable USB 1 host interface 1 device interface Storage SD card Flash memory slot up to 2GB Sound Internal mono speaker external 3 5mm stereo jack Clock Inter...

Page 10: ...OFF Enable OFF 4 Drag and drop feature Disable ON 5 ON 9600 6 ON 5 ON 5 19200 6 OFF 5 OFF 38400 6 ON 5 OFF 6 RS232 Speed 115200 6 OFF Caution If the drag and drop feature is enabled and the serial co...

Page 11: ...e locations below Flash Disk SD Card Flash Disk AutoRun Storage Card AutoRun Copy the executable to the folder using ActiveSync There should be only one EXE in the folder The Flash storage area is res...

Page 12: ...Code Application performance can be increased by developing native code instead of managed code However the NET Compact Framework supplies a wide range of useful functions so native code may require m...

Page 13: ...crosoft This version can be installed and used for a period of 90 days which should provide enough time to test several application concepts on the CUWIN and determine whether to purchase a full Visua...

Page 14: ...n file following all installation prompts 4 Locate and run the CUWIN SDK installation file following all installation prompts If the above installations completed successfully you should now have a wo...

Page 15: ...veSync If you do not wish to use ActiveSync the resulting executable files can be transferred to the CUWIN using an SD card 1 Run Microsoft Visual Studio 2005 2 Choose New Project from the File menu 3...

Page 16: ...16 4 A new blank project is created as shown below 5 Drag a Button control from the toolbox to the middle of Form1...

Page 17: ...lect the new button Change the Text attribute from Button1 to Hello 7 Double click the Hello button Visual Studio will open a window to edit the code that handles Hello button click events Type MsgBox...

Page 18: ...18 8 Set the target device 1 In the Solution Explorer select the top level item 2 Select Target Device and a list of possible devices will be displayed Choose Windows CE 5 0...

Page 19: ...Start Debugging icon as indicated below This will build and publish the program in debugging mode 10 After a short delay the program is transferred to the CUWIN and executed assuming a working ActiveS...

Page 20: ...Studio which adds some overhead to the execution of the program If you simply want to compile and execute the program on the CUWIN for testing without starting the debugger it is possible to configur...

Page 21: ...21 2 Click the Commands tab then the Debug category Find Start without debugging and drag it to a convenient location on the toolbar...

Page 22: ...ram has been fully tested it should be compiled without debugging routines It is possible to switch between Release and Debug modes by right clicking on the project name in the Solution Explorer Howev...

Page 23: ...e Solution Configurations item should now be on a toolbar it is probably disabled To enable click Tools Options in the menu bar 4 Choose the General section and check the box for Show advanced build c...

Page 24: ...24 5 The Solution Configurations listbox should now be enabled Debug and Release modes can now be selected easily...

Page 25: ...following is a quick startup guide to allow developers to ensure the CUWIN environment is working correctly 1 Click File New Project on the menu bar 2 Choose Smart Device in the Project types box The...

Page 26: ...ication will be created for MFC application development The MFC Library included in Windows CE is contains a subset of the functions available on a Windows PC environment For additional information re...

Page 27: ...order to allow the changes to persist over a power loss Please refer to Section 4 9 Saving the Registry 4 2 USB Ports The CUWIN has one USB Host port and one USB Device port both capable of USB Low a...

Page 28: ...SD card can be formatted on a PC with an SD slot 4 4 Managing TrueType Fonts TrueType fonts can be added and removed depending on user requirements Fonts can be placed in the following locations Stor...

Page 29: ...2 Double click the CS89001 icon A window will appear that allows selecting either DHCP or manual entry of DNS and IP settings Note if Control Panel settings are changed the registry must be saved in...

Page 30: ...power and select the desired delay Alternately clear this check box if no display timeout is desired 3 Click on the Advanced button and check the box that enables the backlight to be enabled while on...

Page 31: ...Control Panel icon 2 Click the Calibrate tab then click the Recalibrate button The utility will position crosshairs on different areas of the screen which should be pressed with a stylus as accuratel...

Page 32: ...anged the registry must be saved in order to allow the changes to persist over a power loss Please refer to Section 4 9 Saving the Registry 4 9 Saving the Registry If changes are made to the system re...

Page 33: ...but it is desirable to modify it when you use many Cuwins under the same network You can configure MAC address following these steps 1 Click Start Programs Command Prompt 2 Use MACADDR command with th...

Page 34: ...remote configuration and debugging tools 5 1 Installing ActiveSync The version of ActiveSync described here is 4 5 It can be downloaded from Microsoft at the following location URL is subject to chang...

Page 35: ...35 3 A license agreement screen will appear Click the radio button to accept the terms and click Next 4 Type in some customer information Click Next...

Page 36: ...36 5 If a different install location is required adjust as necessary otherwise click Next 6 ActiveSync will install as shown below...

Page 37: ...37 7 If the installation was successful the following screen will be displayed Click Finish to exit the installation program...

Page 38: ...IN Device port to a USB port on a desktop PC with ActiveSync installed 2 The first time the CUWIN is connected ActiveSync will ask to set up a partnership This is typically intended for mobile phones...

Page 39: ...e CUWIN and display the following window If ActiveSync does not automatically connect when the CUWIN is plugged into the PC right click on the ActiveSync system tray icon and click Connection Settings...

Page 40: ...applications and data while power is off This memory area has an upper limit on write cycles as all Flash memory does avoid unnecessary writes to this area Storage Card Contains the filesystem of an S...

Reviews: