Winmobile

所属分类:Windows Phone
开发工具:Visual C++
文件大小:1321KB
下载次数:192
上传日期:2008-06-12 07:47:14
上 传 者oneoneone
说明:  windows mobile 开发实例wi ndows mobile 开发实例
(windows mobile development examples wi ndows mobile development examples)

文件列表:
YaoDurant\CPP\Ch04_PlatformInvoke (0, 2003-02-22)
YaoDurant\CPP\Ch04_PlatformInvoke\ShowParam (0, 2003-02-22)
YaoDurant\CPP\Ch04_PlatformInvoke\ShowParam\ShowParam.cpp (7527, 2002-11-17)
YaoDurant\CPP\Ch04_PlatformInvoke\ShowParam\ShowParam.h (2037, 2002-11-05)
YaoDurant\CPP\Ch04_PlatformInvoke\ShowParam\ShowParam.vcb (50176, 2002-11-05)
YaoDurant\CPP\Ch04_PlatformInvoke\ShowParam\ShowParam.vcl (1883, 2002-11-05)
YaoDurant\CPP\Ch04_PlatformInvoke\ShowParam\ShowParam.vco (49664, 2002-11-05)
YaoDurant\CPP\Ch04_PlatformInvoke\ShowParam\ShowParam.vcp (31832, 2002-11-05)
YaoDurant\CPP\Ch04_PlatformInvoke\ShowParam\ShowParam.vcw (546, 2002-11-02)
YaoDurant\CPP\Ch04_PlatformInvoke\ShowParam\StdAfx.cpp (296, 2002-11-02)
YaoDurant\CPP\Ch04_PlatformInvoke\ShowParam\StdAfx.h (811, 2002-11-02)
YaoDurant\CPP\Ch04_PlatformInvoke\ShowParam\X86Rel (0, 2003-02-22)
YaoDurant\CPP\Ch04_PlatformInvoke\ShowParam\X86Rel\ShowParam.dll (6656, 2002-11-05)
YaoDurant\CPP\Ch09_InsideMoreControls (0, 2003-08-09)
YaoDurant\CPP\Ch09_InsideMoreControls\YaoDurantControls (0, 2003-08-15)
YaoDurant\CPP\Ch09_InsideMoreControls\YaoDurantControls\ARMRel (0, 2003-08-10)
YaoDurant\CPP\Ch09_InsideMoreControls\YaoDurantControls\ARMRel\ARM_YaoDurantControls.dll (5632, 2003-08-10)
YaoDurant\CPP\Ch09_InsideMoreControls\YaoDurantControls\EventGrabber.cpp (3448, 2003-08-10)
YaoDurant\CPP\Ch09_InsideMoreControls\YaoDurantControls\StdAfx.cpp (304, 2003-08-09)
YaoDurant\CPP\Ch09_InsideMoreControls\YaoDurantControls\StdAfx.h (811, 2003-08-09)
YaoDurant\CPP\Ch09_InsideMoreControls\YaoDurantControls\X86Rel (0, 2003-08-10)
YaoDurant\CPP\Ch09_InsideMoreControls\YaoDurantControls\X86Rel\X86_YaoDurantControls.dll (4608, 2003-08-10)
YaoDurant\CPP\Ch09_InsideMoreControls\YaoDurantControls\YaoDurantControls.cpp (6560, 2003-08-10)
YaoDurant\CPP\Ch09_InsideMoreControls\YaoDurantControls\YaoDurantControls.def (121, 2003-08-09)
YaoDurant\CPP\Ch09_InsideMoreControls\YaoDurantControls\YaoDurantControls.h (2172, 2003-08-10)
YaoDurant\CPP\Ch09_InsideMoreControls\YaoDurantControls\YaoDurantControls.vcb (74752, 2003-08-10)
YaoDurant\CPP\Ch09_InsideMoreControls\YaoDurantControls\YaoDurantControls.vcl (1365, 2003-08-10)
YaoDurant\CPP\Ch09_InsideMoreControls\YaoDurantControls\YaoDurantControls.vco (54784, 2003-08-10)
YaoDurant\CPP\Ch09_InsideMoreControls\YaoDurantControls\YaoDurantControls.vcp (29153, 2003-08-10)
YaoDurant\CPP\Ch09_InsideMoreControls\YaoDurantControls\YaoDurantControls.vcw (562, 2003-08-09)
YaoDurant\CPP\Ch14_RAPI (0, 2003-02-22)
YaoDurant\CPP\Ch14_RAPI\Device (0, 2004-05-06)
YaoDurant\CPP\Ch14_RAPI\Device\SimpleBlockModeInvoke (0, 2004-06-09)
YaoDurant\CPP\Ch14_RAPI\Device\SimpleBlockModeInvoke\ARMRel (0, 2003-02-22)
YaoDurant\CPP\Ch14_RAPI\Device\SimpleBlockModeInvoke\ARMRel\SimpleBlockModeInvoke.dll (4608, 2003-01-27)
YaoDurant\CPP\Ch14_RAPI\Device\SimpleBlockModeInvoke\SimpleBlockModeInvoke.cpp (1294, 2003-01-27)
YaoDurant\CPP\Ch14_RAPI\Device\SimpleBlockModeInvoke\SimpleBlockModeInvoke.vcp (27505, 2003-01-26)
YaoDurant\CPP\Ch14_RAPI\Device\SimpleBlockModeInvoke\SimpleBlockModeInvoke.vcw (570, 2003-01-26)
YaoDurant\CPP\Ch14_RAPI\Device\SimpleBlockModeInvoke\StdAfx.cpp (308, 2003-01-26)
YaoDurant\CPP\Ch14_RAPI\Device\SimpleBlockModeInvoke\StdAfx.h (830, 2003-01-26)
... ...

====================================================================== Postal Code Custom Control Developed for Windows Mobile Developer Conference San Francisco, CA March 2004 ====================================================================== (c) Copyright 2004 Paul Yao and David Durant All rights reserved. ====================================================================== An extra sample provided for readers of: .NET Compact Framework Programming with C# By Paul Yao and David Durant Published by Addison Wesley For details on this book and its source code, browse to the book's web site: http://www.paulyao.com/cfbook ====================================================================== The Postal Code Custom Control shows a custom control that is created by inheriting from the TextBox class. The control provides some degree of filtering for postal codes. In some cases, postal codes are just digits (as in USA, Mexico, Singapore, etc.); in some cases, postal codes can contain letters (as in Canada, and United Kingdom) as well as spaces and hyphens. Each country has rules about the format for a "correct" postal code. While this sample control uses a very simple rule - that the maximum number of characters has been entered - with a bit of work this can be extended to help validate the postal codes by the custom control. (For details on Postal Code formats, visit the Universal Postal Union web site, http://www.upu.org.) This sample shows four steps in the creation of a custom control: 1) Start_SimpleApp 2) Step1_Control_In_App 3) Step2_Control_In_Dll 4) Step3_Control_In_Designer Details of each step appear below: ====================================================================== 1) Start_SimpleApp This is a simple Pocket PC program that has uses a TextBox to accept the postal code. ====================================================================== 2) Step1_Control_In_App In this step, a new class has been created to provide validation for postal codes. The class is still built into the application, but is in a separate class (which makes it easier to move it to its own DLL). ====================================================================== 3) Step2_Control_In_Dll In this step, the control class is put in a separate DLL. This is the first step in giving a control a life of its own separate from its application. But one more step is needed still... ====================================================================== 4) Step3_Control_In_Designer To create support for a custom control in the Visual Studio .NET Designer, we must build a version of the DLL that relies on the desktop .NET Framework. And so getting designer support for a custom control involves creating two separate DLLs from the same (or similar) source files: a device-side DLL (which was done in step 3), and a designer-side DLL. These DLLs are copied to known locations for the Designer to find them, namely: Location of Device-Side DLL: ..\CompactFrameworkSDK\v1.0.5000\Windows CE Location of Designer DLL: ..\CompactFrameworkSDK\v1.0.5000\Windows CE\Designer Both directories are installed within the Microsoft Visual Studio .NET 2003 program files directory tree. ======================================================================

近期下载者

相关文件


收藏者