源码 Dr.Bob’s Delphi Prism XE Development Essentials June 2011

时间:2015-05-10 07:57:04
【文件属性】:

文件名称:源码 Dr.Bob’s Delphi Prism XE Development Essentials June 2011

文件大小:379KB

文件格式:ZIP

更新时间:2015-05-10 07:57:04

源码 Dr.Bob’s

源码 8 References . 8 2. Language Features 9 Oxygene Compiler. 9 Delphi Prism Projects and Namespaces 9 Methods ... 11 Unnamed Constructors ............................................................. 12 IDE: Build and Debug ............................................................... 12 Strings.................................................................................... 13 For-Loops ................................................................................ 15 Prism Loop .............................................................................. 16 Conditions ............................................................................... 17 Try except finally end ............................................................... 17 Exception Filters ...................................................................... 17 Variables ................................................................................. 18 Properties................................................................................ 18 .NET Specific Features ........................................................................ 19 Partial Classes ......................................................................... 19 Partial Methods ........................................................................ 21 Generics.................................................................................. 21 Generic Constraints .................................................................. 23 Generic Methods ...................................................................... 23 LINQ....................................................................................... 24 Sequences............................................................................... 25 Delphi Prism Specific Features ............................................................. 28 Async...................................................................................... 28 Futures ................................................................................... 28 Parallel.................................................................................... 29 Summary .......................................................................................... 29 References ........................................................................................ 30 3. Delphi Prism .NET Projects 31 WinForms.......................................................................................... 31 Toolbox and Design .................................................................. 34 Properties and Events ............................................................... 34 Windows Presentation Foundation ........................................................ 36 XAML ...................................................................................... 38 Silverlight................................................................................ 40 Mono ................................................................................................ 40 Summary .......................................................................................... 40 References ........................................................................................ 40 Delphi Prism Essentials Table of Contents Bob Swart Training & Consultancy - iii - www.drbob42.com 4. dbExpress and DataSnap 41 dBExpress ......................................................................................... 41 Server Explorer........................................................................ 41 Data Sources ........................................................................... 44 DataSnap Clients................................................................................ 53 DataSnap Server...................................................................... 53 Delphi Prism Server Explorer ..................................................... 55 Delphi Prism DataSnap 2010 Clients........................................... 58 Summary .......................................................................................... 62 References ........................................................................................ 62 5. ASP.NET Web Applications 63 ASP.NET Web Sites............................................................................. 63 .aspx ...................................................................................... 64 .aspx.pas ................................................................................ 65 Debug | Start without Debugging............................................... 66 Web.config .............................................................................. 66 appSettings ............................................................................. 67 Custom Errors.......................................................................... 67 Authorization ........................................................................... 68 compilation.............................................................................. 71 Global.asax.............................................................................. 71 Application and Session State.................................................... 71 Session State........................................................................... 71 Application State...................................................................... 73 More Session Support ............................................................... 73 Navigation ............................................................................... 74 Master Page............................................................................. 75 Menu ...................................................................................... 76 Web Site Deployment ............................................................... 79 ASP.NET and Data Access ................................................................... 80 ASP.NET Project ....................................................................... 80 Declaritve Data Sources............................................................ 80 Project Deployment .................................................................. 93 Summary .......................................................................................... 94 6. ASP.NET Web Services 95 ASP.NET Web Service as Web Site ....................................................... 95 [WebService]........................................................................... 96 [WebMethod]........................................................................... 97 WebMethod properties .............................................................. 98 EnableSession.......................................................................... 98 First Test................................................................................. 98 ASP.NET Test........................................................................... 100 Deployment............................................................................. 101 WSDL ..................................................................................... 102 Web Service Client ................................................................... 103 Asynchronous Calls .................................................................. 105 Web Service Projects .......................................................................... 107 EnableSession.......................................................................... 109 Web Service Client ................................................................... 111 Using Web Services .................................................................. 113 Session Cleanup....................................................................... 114 Deployment............................................................................. 115 Amend Client URL .................................................................... 116 Security: SOAP Headers...................................................................... 117 SOAP Header Client .................................................................. 119 Delphi Prism Essentials Table of Contents Bob Swart (Bob@eBob42.com) - iv - June 2011 HttpHandler....................................................................................... 122 IHttpHandler............................................................................ 122 Custom HttpHandlers................................................................ 122 Num to Word ........................................................................... 126 Returning XML Files .................................................................. 129 Windows Communication Foundation.................................................... 129 WCF........................................................................................ 129 WCF Demo .............................................................................. 130 WCF Service ............................................................................ 131 Contracts ................................................................................ 131 IMoneyService ......................................................................... 132 WCF Host ................................................................................ 133 Hosting in IIS .......................................................................... 133 Deployment............................................................................. 136 Delphi Prism WCF Client............................................................ 137 Summary .......................................................................................... 139 References ........................................................................................ 139 7. Delphi Prism XE and MonoTouch 141 Mac OS X Development....................................................................... 141 iPhone SDK ............................................................................. 141 Mono for OS X ......................................................................... 142 Delphi Prism XE and MonoTouch ................................................ 142 MonoTouch SDK....................................................................... 142 Updated Templates for MonoTouch and MonoMac......................... 142 Deployment............................................................................. 143 Delphi Prism XE in MonoDevelop .......................................................... 143 First Demo: Get Time ............................................................... 144 Outlets.................................................................................... 149 Actions.................................................................................... 152 Second Demo: Hello, World!...................................................... 157 Third Demo: Tic-Tac-Toe........................................................... 162 Fourth Demo: Database ............................................................ 169 Summary: MonoTouch Clients ............................................................. 174 8. Hydra: Win32 and .NET 175 Hydra ............................................................................................... 175 Delphi Prism Hydra .NET Plugin Module ...................................... 175 Hydra Win32 Server ................................................................. 178 Loading and Using.................................................................... 180 Closure ................................................................................... 183 Delphi 2010 Hydra Win32 Plugin................................................ 184 Delphi Prism Hydra .NET Server................................................. 184 Summary .......................................................................................... 184


网友评论

  • 太垃圾了 不能够用!