Mdn 0812Dg.Pdf

Total Page:16

File Type:pdf, Size:1020Kb

Mdn 0812Dg.Pdf Untitled-10 1 6/6/12 11:32 AM THE MICROSOFT JOURNAL FOR DEVELOPERS AUGUST 2012 VOL 27 NO 8 Functional-Style Programming in C++ COLUMNS David Cravey ........................................................................... 30 CUTTING EDGE Mobile Site Development, Part 3: Windows Azure Comes to the Rescue Routing Requests Mark Kromer ........................................................................... 38 Dino Esposito, page 6 Build User-Friendly XML Interfaces WINDOWS WITH C++ Lightweight Cooperative with Windows PowerShell Multitasking with C++ Joe Leibowitz ........................................................................... 50 Kenny Kerr, page 10 DATA POINTS A History (API) Lesson Pitfalls and Pointers for a Base Clark Sell ................................................................................. 56 Logging Class in EF Models Julie Lerman, page 16 Using the Team Foundation Server FORECAST: CLOUDY Client Object Model Decoupling the Cloud with MEF Brian Blackman and Willy-Peter Schaub ..................................... 60 Joseph Fultz and Chris Mabry, page 22 CyberNanny: Remote Access via THE WORKING Distributed Components PROGRAMMER Angel Hernandez Matos ........................................................... Cassandra NoSQL Database: 66 Getting Started .NET Development for ARM Processors Ted Neward, page 78 Andrew Pardoe ........................................................................ 72 TOUCH AND GO Viewing a Virtual World from Your Windows Phone Charles Petzold, page 82 DON’T GET ME STARTED Whither Windows 8 Hardware David Platt, page 88 Start a Revolution Refuse to choose between desktop and mobile. With the brand new NetAdvantage for .NET, you can create awesome apps with killer data visualization today, on any platform or device. Get your free, fully supported trial today! www.infragistics.com/NET Infragistics Sales US 800 231 8588 • Europe +44 (0) 800 298 9055 • India +91 80 4151 8042 • APAC (+61) 3 9982 4545 Copyright 1996-2012 Infragistics, Inc. All rights reserved. Infragistics and NetAdvantage are registered trademarks of Infragistics, Inc. The Infragistics logo is a trademark of Infragistics, Inc. All other trademarks or registered trademarks are the respective property of their owners. Untitled-6 2 7/10/12 4:03 PM Compatible with Microsoft® Visual Studio® 2012 Untitled-6 3 7/10/12 4:04 PM AUGUST 2012 VOLUME 27 NUMBER 8 magazine MITCH RATCLIFFE Director MUHAMMAD AL-SABT Editorial Director/[email protected] PATRICK O’NEILL Site Manager MICHAEL DESMOND Editor in Chief/[email protected] DAVID RAMEL Technical Editor SHARON TERDEMAN Features Editor WENDY HERNANDEZ Group Managing Editor KATRINA CARRASCO Associate Managing Editor SCOTT SHULTZ Creative Director JOSHUA GOULD Art Director CONTRIBUTING EDITORS Dino Esposito, Joseph Fultz, Kenny Kerr, Julie Lerman, Dr. James McCaffrey, Ted Neward, John Papa, Charles Petzold, David S. Platt Henry Allain President, Redmond Media Group Doug Barney Vice President, New Content Initiatives Michele Imgrund Sr. Director of Marketing & Audience Engagement Tracy Cook Director of Online Marketing ADVERTISING SALES: 508-532-1418/[email protected] Matt Morollo VP/Group Publisher Chris Kourtoglou Regional Sales Manager William Smith National Accounts Director Danna Vedder National Account Manager/Microsoft Account Manager Jenny Hernandez-Asandas Director, Print Production Serena Barnes Production Coordinator/[email protected] Neal Vitale President & Chief Executive Offi cer Richard Vitale Senior Vice President & Chief Financial Offi cer Michael J. Valenti Executive Vice President Christopher M. Coates Vice President, Finance & Administration Erik A. Lindgren Vice President, Information Technology & Application Development David F. Myers Vice President, Event Operations Jeffrey S. Klein Chairman of the Board MSDN Magazine (ISSN 1528-4859) is published monthly by 1105 Media, Inc., 9201 Oakdale Avenue, Ste. 101, Chatsworth, CA 91311. Periodicals postage paid at Chatsworth, CA 91311-9998, and at additional mailing offi ces. Annual subscription rates payable in US funds are: U.S. $35.00, International $60.00. Annual digital subscription rates payable in U.S. funds are: U.S. $25.00, International $25.00. Single copies/back issues: U.S. $10, all others $12. Send orders with payment to: MSDN Magazine, P.O. Box 3167, Carol Stream, IL 60132, email [email protected] or call (847) 763-9560. POSTMASTER: Send address changes to MSDN Magazine, P.O. Box 2166, Skokie, IL 60076. Canada Publications Mail Agreement No: 40612608. Return Undeliverable Canadian Addresses to Circulation Dept. or XPO Returns: P.O. Box 201, Richmond Hill, ON L4B 4R5, Canada. Printed in the U.S.A. Reproductions in whole or part prohibited except by written permission. Mail requests to “Permissions Editor,” c/o MSDN Magazine, 4 Venture, Suite 150, Irvine, CA 92618. Legal Disclaimer: The information in this magazine has not undergone any formal testing by 1105 Media, Inc. and is distributed without any warranty expressed or implied. Implementation or use of any information contained herein is the reader’s sole responsibility. While the information has been reviewed for accuracy, there is no guarantee that the same or similar results may be achieved in all environments. Technical inaccuracies may result from printing errors and/or new developments in the industry. Corporate Address: 1105 Media, Inc., 9201 Oakdale Ave., Ste 101, Chatsworth, CA 91311, www.1105media.com Media Kits: Direct your Media Kit requests to Matt Morollo, VP Publishing, 508-532-1418 (phone), 508-875-6622 (fax), [email protected] Reprints: For single article reprints (in minimum quantities of 250-500), e-prints, plaques and posters contact: PARS International, Phone: 212-221-9595, E-mail: [email protected], www.magreprints.com/ QuickQuote.asp List Rental: This publication’s subscriber list, as well as other lists from 1105 Media, Inc., is available for rental. For more information, please contact our list manager, Merit Direct. Phone: 914-368-1000; E-mail: [email protected]; Web: www.meritdirect.com/1105 All customer service inquiries should be sent to [email protected] or call 847-763-9560. Printed in the USA Untitled-2 1 7/2/12 10:49 AM EDITOR’S NOTE MICHAEL DESMOND On Point with Julie Lerman In the world of soft ware development, nothing is certain except partial solution. Th e addition of POCO [Plain Old CLR Object] death, taxes and data. As MSDN Magazine Data Points columnist support in EF4 was a huge leap forward, and then Code First plus Julie Lerman points out: “Nobody can avoid data, so it’s a topic the much-simpler-to-use API [DbContext] changed the broader that’s important to everyone.” perception of EF dramatically. It wasn’t until those last two pieces Which is why Data Points has been a fi xture inMSDN Magazine arrived that people at Microsoft who are outside of the data team since John Papa fi rst penned the column back in 2002. Papa launched started paying attention to it. And the developers’ eyes, enthusi- the column to address what he felt was a shortage of data-related asm and excitement followed. coverage in the magazine (and the industry in general). When It’s also been fascinating to witness the evolution of how the he stepped away from the column in 2009 aft er taking a job with EF team at Microsoft works. Aft er some challenging interactions Microsoft , Papa recommended Julie Lerman to take his spot. with a voluble community that was unhappy with the initial I asked Lerman about her experience writing the column and release, they responded with some fantastic changes that made EF about her thoughts on data and development. As Lerman told me, palatable to a much wider audience. Now the entire team is focused inspiration is not hard to fi nd. on responding to community feedback. “I’ve tried to use the column to explain things that either I’m I get the feeling that the .NET dev community—the subset that curious or confused about, such as what the heck NoSQL is,” she engages with new releases and providing feedback—has a great says. “Or as a way to share answers to questions that I’m asked sense of ownership of EF and is now very supportive of the work frequently—for example, about Entity Framework [EF].” the team is doing. Michael Desmond: Th e .NET data space has been anything How do you find time to write consistently given the but boring, with plenty of infrastructure work pulling devel- demands of your day job? How does writing help you opers in diff erent directions. Have things settled down? Any improve as a developer? advice for developers trying to make big-picture decisions You know better than anyone that my articles are rarely delivered about data in 2012? on time. I just steal the time from other tasks and deadlines, so I’m Julie Lerman: Settled? Ha! I think they’re moving faster. I do think constantly juggling. I also have to steal some of that time from my the ORMs [object-relational mappers] are going to settle in as the personal life. I think the fact that my husband and I don’t have kids “classics” for a while, and Entity Framework seems to have become makes that a bit easier. the standard for out-of-the-box .NET data access. Th e process of writing does indeed have a positive eff ect on my Th ere’s so much innovative work and thinking going on, especially development skills. I’m reluctant to write something down until with the focus on big data, NoSQL and CQRS [Command Query I’ve explored it inside and out, which forces me to learn even more Responsibility Segregation], to name a few. But not everyone has to deeply something I may already have a great deal of comfort with. work with the vast amounts of data that comes under that umbrella. I think we have a great responsibility not to misdirect people who I really do think ORM over relational database is the new norm. depend on us for their knowledge. I’m constantly questioning what I know and how I do things, and I sometimes very reluctantly How well has EF come together over its brief, if turbulent, drag myself through some process of evolution.
Recommended publications
  • Download the Ebrochure
    DECEMBER 5-9, ORLANDO, FLORIDA Royal Pacific Resort at Universal Orlando® 5 CODE-FILLED DAYS IN FLORIDA! REGISTER TODAY! VSLIVE.COM/ORLANDO u Visual Studio 2010 / .NET u Web / HTML5 u Developing Services u Cloud Computing u Silverlight / WPF u Windows Phone 7 u Data Management u Programming Practices PLATINUM SPONSORS SUPPORTED BY PRODUCED BY DECEMBER 5-9, ORLANDO, FLORIDA Royal Pacific Resort at Universal Orlando® A Message from the Co-Chairs The Microsoft Development Platform is reaching a huge milestone. With Windows 8 waiting in the wings, the growing momentum of Windows Phone, the industry-wide HTML 5 push and continual emphasis on Cloud Computing, just about everything is changing and growing. We think there’s a great way to digest these changes and seize their collective opportunity. And that’s to hear about them directly TABLE OF from Microsoft product team members and evangelists, along with a number of the finest independent speakers in the business. CONTENTS: We’re Andrew Brust and Rocky Lhotka, and as Conference 10 Reasons to Attend ............................................ 3 Co-Chairs for Visual Studio Live! Orlando, we’d like to personally Speaker List ............................................................................ 4 invite you to join us this December in Orlando, Florida, where we’ll have some of the best content and speakers that you’ll find at a Events & Activities ....................................................... 5 technical conference. Keynote Abstracts ....................................................... 6 Look Who’s Attending .......................................... 6 We’ve put together a blockbuster lineup of sessions on: HTML 5; the Cloud; Windows Phone Development, Silverlight and WPF; Venue & Travel .................................................................... 7 Data Management and Services Development. Agenda-At-A-Glance .............................................
    [Show full text]
  • Automatically Detecting ORM Performance Anti-Patterns on C# Applications Tuba Kaya Master's Thesis 23–09-2015
    Automatically Detecting ORM Performance Anti-Patterns on C# Applications Tuba Kaya Master's Thesis 23–09-2015 Master Software Engineering University of Amsterdam Supervisors: Dr. Raphael Poss (UvA), Dr. Giuseppe Procaccianti (VU), Prof. Dr. Patricia Lago (VU), Dr. Vadim Zaytsev (UvA) i Abstract In today’s world, Object Orientation is adopted for application development, while Relational Database Management Systems (RDBMS) are used as default on the database layer. Unlike the applications, RDBMSs are not object oriented. Object Relational Mapping (ORM) tools have been used extensively in the field to address object-relational impedance mismatch problem between these object oriented applications and relational databases. There is a strong belief in the industry and a few empirical studies which suggest that ORM tools can cause decreases in application performance. In this thesis project ORM performance anti-patterns for C# applications are listed. This list has not been provided by any other study before. Next to that, a design for an ORM tool agnostic framework to automatically detect these anti-patterns on C# applications is presented. An application is developed according to the designed framework. With its implementation of analysis on syntactic and semantic information of C# applications, this application provides a foundation for researchers wishing to work further in this area. ii Acknowledgement I would like to express my gratitude to my supervisor Dr. Raphael Poss for his excellent support through the learning process of this master thesis. Also, I like to thank Dr. Giuseppe Procaccianti and Prof. Patricia Lago for their excellent supervision and for providing me access to the Green Lab at Vrije Universiteit Amsterdam.
    [Show full text]
  • Azure Web Apps for Developers Microsoft Azure Essentials
    Azure Web Apps for Developers Microsoft Azure Essentials Rick Rainey Visit us today at microsoftpressstore.com • Hundreds of titles available – Books, eBooks, and online resources from industry experts • Free U.S. shipping • eBooks in multiple formats – Read on your computer, tablet, mobile device, or e-reader • Print & eBook Best Value Packs • eBook Deal of the Week – Save up to 60% on featured titles • Newsletter and special offers – Be the first to hear about new releases, specials, and more • Register your book – Get additional benefits Hear about it first. Get the latest news from Microsoft Press sent to your inbox. • New and upcoming books • Special offers • Free eBooks • How-to articles Sign up today at MicrosoftPressStore.com/Newsletters Wait, there’s more... Find more great content and resources in the Microsoft Press Guided Tours app. The Microsoft Press Guided Tours app provides insightful tours by Microsoft Press authors of new and evolving Microsoft technologies. • Share text, code, illustrations, videos, and links with peers and friends • Create and manage highlights and notes • View resources and download code samples • Tag resources as favorites or to read later • Watch explanatory videos • Copy complete code listings and scripts Download from Windows Store PUBLISHED BY Microsoft Press A division of Microsoft Corporation One Microsoft Way Redmond, Washington 98052-6399 Copyright © 2015 Microsoft Corporation. All rights reserved. No part of the contents of this book may be reproduced or transmitted in any form or by any means without the written permission of the publisher. ISBN: 978-1-5093-0059-4 Microsoft Press books are available through booksellers and distributors worldwide.
    [Show full text]
  • Programming with the Kinect for Windows SDK What We’Ll Cover
    Programming with the Kinect for Windows SDK What we’ll cover . Kinect Sensor . Using Cameras . Understanding Depth Data . Skeletal Tracking . Audio 3D DEPTH SENSORS RGB CAMERA MULTI-ARRAY MIC MOTORIZED TILT SDK Architecture Applications Video Components Audio Components Windows Core Audio 5 3 NUI API and Speech APIs DMO codec for mic array 4 2 Device Device Video stream control Audio stream control setup access User Mode WinUSB device stack WinUSB camera stack USBAudio audio stack Kernel Mode Kernel - mode drivers for Kinect for Windows USB Hub Hardware 1 Motor Cameras Audio mic array Kinect sensor Kinect for Windows User -created Windows SDK components components SDK Architecture Applications Video Components Audio Components Windows Core Audio 5 3 NUI API and Speech APIs DMO codec for mic array 4 2 Device Device Video stream control Audio stream control setup access User Mode WinUSB device stack WinUSB camera stack USBAudio audio stack Kernel Mode Kernel - mode drivers for Kinect for Windows USB Hub Hardware 1 Motor Cameras Audio mic array Kinect sensor Kinect for Windows User -created Windows SDK components components SDK Architecture Applications Video Components Audio Components Windows Core Audio 5 3 NUI API and Speech APIs DMO codec for mic array 4 2 Device Device Video stream control Audio stream control setup access User Mode WinUSB device stack WinUSB camera stack USBAudio audio stack Kernel Mode Kernel - mode drivers for Kinect for Windows USB Hub Hardware 1 Motor Cameras Audio mic array Kinect sensor Kinect for Windows User
    [Show full text]
  • Using Winusb with MCU Integrating USB Device Controller
    Freescale Semiconductor Document Number: AN4378 Application Note Rev. 0, 10/2011 Using WinUSB in a Visual Studio Project with Freescale USB device controller by: Paolo Alcantara Microcontroller Solutions Group Contents 1 Introduction 1 Introduction................................................................1 Freescale has different MCUs and MPUs with a USB device 1.1 Scope..............................................................1 controller for 8/16/32-bit architectures. Windows provides 1.2 Audience description.....................................1 default USB drivers for standard USB classes like human interface device (HID) class, mass storage device (MSD) or 2 WinUSB Overview....................................................2 communication device class (CDC). However Windows 3 Using FSLwinusb_v2................................................2 requires the development of new USB drivers when using a customized USB class for a specific use or a Windows non- 3.1 Running the example software and supported USB class. This application note explains how to firmware.........................................................2 skip the development of a Windows USB device driver by 4 Adding FSLwinusb_v2.dll........................................9 using a USB DLL named FSLwinusb_v2.dll. The dynamic link library (DLL) is based on a generic USB driver provided 4.1 FSLwinusb_v2.dll inside a C# by Microsoft named WinUSB. The MCF51JM128 is the project.............................................................9 device used to test the USB
    [Show full text]
  • De La Torre C. Et
    y i EDITION v2.01 DOWNLOAD available at: https://aka.ms/microservicesebook PUBLISHED BY Microsoft Developer Division, .NET and Visual Studio product teams A division of Microsoft Corporation One Microsoft Way Redmond, Washington 98052-6399 Copyright © 2017 by Microsoft Corporation All rights reserved. No part of the contents of this book may be reproduced or transmitted in any form or by any means without the written permission of the publisher. This book is provided “as-is” and expresses the author’s views and opinions. The views, opinions and information expressed in this book, including URL and other Internet website references, may change without notice. Some examples depicted herein are provided for illustration only and are fictitious. No real association or connection is intended or should be inferred. Microsoft and the trademarks listed at http://www.microsoft.com on the “Trademarks” webpage are trademarks of the Microsoft group of companies. Mac and macOS are trademarks of Apple Inc. The Docker whale logo is a registered trademark of Docker, Inc. Used by permission. All other marks and logos are property of their respective owners. Co-Authors: Editors: Cesar de la Torre, Sr. PM, .NET product team, Microsoft Corp. Mike Pope Bill Wagner, Sr. Content Developer, C+E, Microsoft Corp. Steve Hoag Mike Rousos, Principal Software Engineer, DevDiv CAT team, Microsoft Participants and reviewers: Jeffrey Ritcher, Partner Software Eng, Azure team, Microsoft Dylan Reisenberger, Architect and Dev Lead at Polly Jimmy Bogard, Chief Architect at Headspring Steve Smith, Software Craftsman & Trainer at ASPSmith Ltd. Udi Dahan, Founder & CEO, Particular Software Ian Cooper, Coding Architect at Brighter Jimmy Nilsson, Co-founder and CEO of Factor10 Unai Zorrilla, Architect and Dev Lead at Plain Concepts Glenn Condron, Sr.
    [Show full text]
  • Contents SOFTWARE for ADMINISTRATORS
    SILVER7 SOURCING UNIPESSOAL LDA PRODUCT SUMMARY Contents SOFTWARE FOR ADMINISTRATORS .......................................................................................................................................... 3 FAXINATION - Enterprise Faxing ........................................................................................................................................... 3 LIQID DATACENTRE ................................................................................................................................................................ 3 UDOCX - Convert business documents into smart digital files .............................................................................................. 3 SQL TOOLS ............................................................................................................................................................................. 3 DBFORGE STUDIO .................................................................................................................................................................. 3 DBFORGE FOR MySQL ............................................................................................................................................................ 3 DBFORGE FOR ORACLE .......................................................................................................................................................... 4 ODBC DRIVERS ......................................................................................................................................................................
    [Show full text]
  • BOOK of NEWS Al in Business
    BOOK OF NEWS Microsoft Inspire July 14 – 18, 2019 Las Vegas, NV Contents Foreword by Gavriella Schuster 4 Inspire Overview and How to Watch 5 Chapter 1 6 Customer and Partner Enablement Item 1.1 Partner program and investments update Item 1.2 Microsoft Azure Lighthouse Item 1.3 Microsoft Edge Enterprise Readiness Item 1.4 Microsoft Intelligent Security Association expands Chapter 2 9 Microsoft Business Applications | ISV Opportunity Item 2.1 New Microsoft Business Applications ISV Connect program and technology industry innovation for ISVs Item 2.2 Industry accelerators for ISVs Item 2.3 Latest version of the Dynamics 365 Nonprofit Accelerator Chapter 3 13 Marketplace Item 3.1 New monetization models, rewards program and route to market in commercial marketplace Chapter 4 15 Microsoft Azure and AI Item 4.1 AI for Cultural Heritage Item 4.2 Cloud Adoption Framework Item 4.3 AI Accelerate Program Item 4.4 New Azure migration capabilities Item 4.5 Azure Migration Program Item 4.6 Azure Data Box Heavy is now generally available; Data Box and Data Box Disk regions are expanded Item 4.7 Open source Quantum Development Kit Item 4.8 Azure Kinect DK General Availability Item 4.9 ServiceNow makes Azure Cloud its preferred cloud platform for highly regulated industries Contents | 2 Contents Chapter 5 20 Databases and Analytics Item 5.1 Blob API interoperability with Azure Data Lake Storage Gen2 Public Preview Item 5.2 Azure Data Share, new analytics service, announced for enterprises Chapter 6 22 Microsoft Teams Item 6.1 Microsoft Teams reaches 13
    [Show full text]
  • Microsoft 2012 Citizenship Report
    Citizenship at Microsoft Our Company Serving Communities Working Responsibly About this Report Microsoft 2012 Citizenship Report Microsoft 2012 Citizenship Report 01 Contents Citizenship at Microsoft Serving Communities Working Responsibly About this Report 3 Serving communities 14 Creating opportunities for youth 46 Our people 85 Reporting year 4 Working responsibly 15 Empowering youth through 47 Compensation and benefits 85 Scope 4 Citizenship governance education and technology 48 Diversity and inclusion 85 Additional reporting 5 Setting priorities and 16 Inspiring young imaginations 50 Training and development 85 Feedback stakeholder engagement 18 Realizing potential with new skills 51 Health and safety 86 United Nations Global Compact 5 External frameworks 20 Supporting youth-focused 53 Environment 6 FY12 highlights and achievements nonprofits 54 Impact of our operations 23 Empowering nonprofits 58 Technology for the environment 24 Donating software to nonprofits Our Company worldwide 61 Human rights 26 Providing hardware to more people 62 Affirming our commitment 28 Sharing knowledge to build capacity 64 Privacy and data security 8 Our business 28 Solutions in action 65 Online safety 8 Where we are 67 Freedom of expression 8 Engaging our customers 31 Employee giving and partners 32 Helping employees make 69 Responsible sourcing 10 Our products a difference 71 Hardware production 11 Investing in innovation 73 Conflict minerals 36 Humanitarian response 74 Expanding our efforts 37 Providing assistance in times of need 76 Governance 40 Accessibility 77 Corporate governance 41 Empowering people with disabilities 79 Maintaining strong practices and performance 42 Engaging students with special needs 80 Public policy engagement 44 Improving seniors’ well-being 83 Compliance Cover: Participants at the 2012 Imagine Cup, Sydney, Australia.
    [Show full text]
  • Practical C/C++ Programming Part II
    Practical C/C++ programming Part II Wei Feinstein HPC User Services Louisiana State University 7/11/18 Practical C/C++ programming II 1 Topics • Pointers in C • Use in functions • Use in arrays • Use in dynamic memory allocation • Introduction to C++ • Changes from C to C++ • C++ classes and objects • Polymorphism • Templates • Inheritance • Introduction to Standard Template Library (STL) 7/11/18 Practical C/C++ programming II 2 What is a pointer? • A pointer is essentially a variable whose value is the address of another variable. • Pointer “points” to a specific part of the memory. • Important concept in C programming language. Not recommended in C++, yet understanding of pointer is necessary in Object Oriented Programming • How to define pointers? int *i_ptr; /* pointer to an integer */ double *d_ptr; /* pointer to a double */ float *f_ptr; /* pointer to a float */ char *ch_ptr; /* pointer to a character */ int **p_ptr; /* pointer to an integer pointer */ 7/11/18 Practical C/C++ programming II 3 Pointer Operations (a) Define a pointer variable. (b) Assign the address of a variable to a pointer. & /* "address of" operator */ (c) Access the value pointed by the pointer by dereferencing * /* “dereferencing" operator */ Examples: int a = 6; int *ptr; ptr = &a; /* pointer p point to a */ *ptr = 10; /* dereference pointer p reassign a value*/ var_name var_address var_value ptr 0x22aac0 0xXXXX a 0xXXXX 6 7/11/18 Practical C/C++ programming II 4 Pointer Example int b = 17; int *p; /* initialize pointer p */ p = &b; /*pointed addr and value,
    [Show full text]
  • 3-16 Edit Inhalt CD.Indd
    XNA Framework Magazin 17 satz haben, lässt sich bereits nach wenigen Minuten der Code für das Spiel schreiben. Lästige, immer wiederkehrende Aufga- Revolution in der ben, wie beispielsweise die Initialisierung des Render-Device oder die Wiederher- stellung des Device beim Skalieren des Spiele-Welt Fensters, gehören der Vergangenheit an – diese Aufgaben übernimmt das XNA Managed Code für die XBox: Framework (zumal die XBox 360 keine typischen Fenster kennt). Eine neue Ära der Spieleentwicklung Schichten sind wieder aktuell von Jens Konerow Wo sich das XNA Framework einreiht, lässt sich am einfachsten erkennen, wenn In den letzten ein bis zwei Jahren zierte das Kürzel XNA gehäuft die Wer- das ganze System in Schichten unterteilt beblätter von Entwicklerkonferenzen, die von Microsoft initiiert wurden, wird. Die folgende Auflistung schemati- oder tauchte in Logos auf, die mit der Multimediaschnittstelle DirectX in siert das gesamte Modell von der tiefsten Verbindung standen. Ende August 2006 wurde die erste Beta-Version Ebene bis zur höchsten Ebene: des Produkts XNA Game Studio Express der Öffentlichkeit zur Verfügung • Plattform: Gebildet wird die Plattform gestellt. Doch was genau ist XNA? Welche Vorzüge bietet XNA? Fragen über eine Reihe von nativen und verwal- über Fragen, die in diesem Artikel beantwortet werden sollen. teten APIs. Darunter zählt beispielswei- se Direct3D zur Kommunikation mit der Grafikkarte, XACT, XInput oder XContent (die Begriffe werden später Microsoft hat es geschafft, DirectX als gleich diese vorerst nur aus Vorlagen für noch etwas genauer beschrieben). eine der wichtigsten Schnittstellen im Be- Visual C# Express besteht. Das Besondere • Core Framework: Diese Schicht des reich Multimediaprogrammierung zu an XNA ist, dass die Spiele nicht nur auf XNA Framework kann mit den Aufga- etablieren.
    [Show full text]
  • Lab 1: Programming in C 1 Lab 1: Programming in C CS 273 Monday, 8-24-20 Revision 1.2
    Lab 1: Programming in C 1 Lab 1: Programming in C CS 273 Monday, 8-24-20 Revision 1.2 Preliminary material • Using manual pages. For example, % man gcc % man read % man 2 read Viewing online manual pages on a browser. • Similarities between C++ and C. C++ language shares most of its same basic syntax with C. Thus, simple variable declarations, assignments, loops, array access, function defini- tions/declarations/calls, etc. are written the essentially the same way in both languages. Much of the basic semantics is shared, also. Thus, a for loop behaves as expected, as does an expression statement, a function definition, etc.; also, operators have the same precedence and associativity. The two languages both use predefined types int, long, float, char, etc. In both languages, ASCII characters are represented as (8-bit) integer values, and simple strings are represented as arrays of characters terminated by nullbytes. Preprocessor directives (such as #include, #define, etc.) are used in both C and C++. • Differences between C++ and C. { C has no classes. Instead, you must use functions and variables to perform operations. It is still useful to use \interface modules" and \implementation modules" and to organize your program into packages that can be linked separately. However, there are no classes to define per se. C does provide struct (and union) for data structures. Unlike C++, a struct is not a class, but instead is a container for variables of various types. There are no methods, no constructors, no destructors, etc. { No overloading of functions or operators in C. Many conventional meanings of operators in C++ (such as <<) are no longer relevant.
    [Show full text]