This will start the Win32 Smart Device Project Wizard. Click 'Next' to go to the Platforms page and follow the steps: 1.Use the '<' button to remove Pocket PC 2003 (or any other items) listed under 'Selected SDKs.' 2.Click on 'Windows Mobile 6 Professional SDK' in the 'Installed SDK' list. 3.Use the '>' button to add 'Windows Mobile 6 Professional SDK' to 'Selected SDKs' list. Click 'Next' to go to Project Settings page. Select 'Application Type' as 'Windows Application' and leave everything else deselected. Click Finish to complete the Wizard. This will create the application framework with all necessary files. It will also open the 'PCQ_App.cpp' source file.
Figure 2 PCQ Application
Modifying the Code for Win32 Application Search for the function WndProc() and locate the following lines:
case WM_PAINT: hdc = BeginPaint(hWnd, &ps); // TODO: Add any drawing code here... EndPaint(hWnd, &ps);
Insert the following code after the 'TODO' comment line:
int bRet; TCHAR szText[20]; StringCchCopy(szText, 20, L"PCQ Hello World App"); SetTextColor (hdc, RGB(255,0,0)); bRet = ExtTextOut (hdc, 60, 100, 0, NULL, szText, lstrlen(szText), NULL);
From the Menu select Build Ô Build Solution. If everything has been done correctly, then you will see the following message in the output box:
===Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ====
Figure 3 Windows Mobile 6 Desktop
Get most out of your technology infrastructure investments with Dell
About CIOL | Media Kit | Site Map | Contact Us | Help | Write to us | Jobs@CyberMedia | Privacy Policy
Copyright © CyberMedia India Online Ltd. All rights reserved. Usage of content from web site is subject to Terms and Conditions.