Posts
63
Comments
91
Trackbacks
0
July 2011 Entries
New code sample release from Microsoft All-In-One Code Framework in July

A new release of Microsoft All-In-One Code Framework is available on July 13th.  We expect that its 17 new code samples would reduce developers’ efforts in solving the following typical programming tasks.

Download address: http://1code.codeplex.com/releases/view/69942

Alternatively, you can download the code samples using Sample Browser or Sample Browser Visual Studio extension. They give you the flexibility to search samples, download samples on demand, manage the downloaded samples in a centralized place, and automatically be notified about sample updates.

image

If it is the first time that you hear about Microsoft All-In-One Code Framework, please watch the introduction video on Microsoft Showcase, and read the introduction on our homepage http://1code.codeplex.com/.

-------------------------------------------

New Windows Driver Kit (WDK) Code Samples

Bart Bartel (Microsoft Senior Escalation Engineer) and his great team members are continuing their efforts to ease Windows Driver developers’ lives with the customer-driven WDK samples.

CppVDSFormatVolume

Download: http://code.msdn.microsoft.com/CppVDSFormatVolume-c84cb6f2

This code sample demonstrates how to use Virtual Disk Service (VDS) to format volumes.  The sample takes the volume number and the target file system type as user input:

CppVDSFormatVolume.exe [-options]...
   -v <volume number (decimal)> REQUIRED INPUT
   -t <target file system type: NTFS, FAT32, etc.> UPPER CASE ONLY, REQUIRED INPUT
   e.g.: CppVDSFormatVolume.exe -v 3 -t NTFS

The sample project tries to find the volume based on the volume number, and format the volume with the specified file system type.

You should use this sample with care because formatting a volume may lead to potential data loss.  You can try out this sample with a useless USB drive.

CppVDSUninstallDisks

Download: http://code.msdn.microsoft.com/CppVDSUninstallDisks-7192ea26

This code sample demonstrates how to use Virtual Disk Service (VDS) to uninstall disks and volumes.  The sample project takes the disk number as user input and performs a complete uninstall, including the dismount of the volume and uninstall underlying disks.

You should use this sample with care because uninstalling a disk may lead to potential data loss.

CppVhdAPI

Download: http://code.msdn.microsoft.com/CppVhdAPI-4412d182

The code sample demonstrates various Windows 7 Virtual Hard Disk (VHD) API usage, such as VHD creation, attaching, detaching and getting and setting disk information.

The code sample must be run on Windows 7 / Windows Server 2008 R2 or newer.  The minimum supported client of the VHD APIs is Windows 7; and the minimum supported server of the VHD APIs is Windows Server 2008 R2.

The sample project takes the following commands as user input.

image

 

-------------------------------------------

New Windows Azure Code Samples

CSAzureWebRoleIdentity

Download: http://code.msdn.microsoft.com/CSAzureWebRoleIdentity-004bc8dd

CSAzureWebRoleIdentity is a web role hosted in Windows Azure. It federates the authentication to a local STS. This breaks the authentication code from the business logic so that web developer can offload the authentication and authorization to the STS with the help of WIF.

This code sample is created to answer a hot Windows Azure sample request: webrole-ADFS authentication with over 25 customer votes.

 
-------------------------------------------

New Silverlight Code Samples

CSSL4SessionCookie

Download: http://code.msdn.microsoft.com/CSSL4SessionCookie-be844333

Written by Jon Burchel – a senior support escalation engineer in Microsoft, this sample demonstrates a simple technique to preserve ASP.NET session ID from a web page hosting a Silverlight component making a client WebRequest to another web page on the same site.  Normally, the WebRequest will not by default preserve session id, and this can be frustrating for a Silverlight developer.  But by appending the Session ID cookie manually to the request, passing it into the Silverlight component through a parameter on the calling web page, the session can in fact be preserved.

image

 

-------------------------------------------

New Windows General Code Samples

CSTiffImageConverter

Download: http://code.msdn.microsoft.com/CSTiffImageConverter-92ac2358

This sample demonstrates how to convert JPEG images into TIFF images and vice versa. This sample also allows to create single multipage TIFF images from selected JPEG images.

TIFF (originally standing for Tagged Image File Format) is a flexible, adaptable file format for handling images and data within a single file, by including the header tags (size, definition, image-data arrangement, applied image compression) defining the image's geometry. For example, a
TIFF file can be a container holding compressed (lossy) JPEG and (lossless) PackBits compressed images. A TIFF file also can include a vector-based clipping path (outlines, croppings, image frames).

image

CSHexStringByteArrayConverter, VBHexStringByteArrayConverter

Downloads
C# version: http://code.msdn.microsoft.com/CSHexStringByteArrayConvert-a80e955d
VB version: http://code.msdn.microsoft.com/VBHexStringByteArrayConvert-be271820

This sample demonstrates how to convert byte array to hex string and vice versa. For example,

   "FF00EE11" <--> { FF, 00, EE, 11 }

image

CSImageFullScreenSlideShow, VBImageFullScreenSlideShow

The sample demonstrates how to display image slideshow in a Windows Forms application.  It also shows how to enter the full screen mode to slide-show images.

image

 

------------------------------------------------

New ASP.NET Code Samples

CSASPNETControlPermissionForFiles, VBASPNETControlPermissionForFiles

Downloads
C# version: http://code.msdn.microsoft.com/CSASPNETControlPermissionFo-8ed8306b
VB version: http://code.msdn.microsoft.com/VBASPNETControlPermissionFo-a67f4b12

The project illustrates how to control the permission for project files and folders on server, and protect them from being downloaded. Here we give a solution that when the web application receive a URL request, we will make a judgment that if the request file's extension name is not .jpg file then redirect to NoPermissionPage page. Also, user can not access the image file via copy URL.

image

CSASPNETFixedHeaderGridView, VBASPNETFixedHeaderGridView

Downloads
C# version: http://code.msdn.microsoft.com/CSASPNETFixedHeaderGridView-9782c89b
VB version: http://code.msdn.microsoft.com/VBASPNETFixedHeaderGridView-7b359f7d

As we know, GridView usually has many rows with a vertical scroll bar. When users scroll using vertical bar, the header of the GridView will move and disappear. This sample illustrates how to fix the header of GridView via JQuery, and this approach can also cross multiple browsers at client side.

image

CSASPNETDisableScriptAfterExecution. VBASPNETDisableScriptAfterExecution

Downloads
C# version: http://code.msdn.microsoft.com/CSASPNETDisableScriptAfterE-8bf228fd
VB version: http://code.msdn.microsoft.com/VBASPNETDisableScriptAfterE-7b6d469c

The sample code illustrates how to register script code at code behind and to be disabled after execution. Sometimes users who register scripts do not want them execute again, Actually they with to achieve this either in an automatic manner or by imitating an action for example, by clicking a link or button. This maybe due to functional purpose, user experience or security concerns.

CSASPNETShowSpinnerImage, VBASPNETShowSpinnerImage

Downloads
C# version: http://code.msdn.microsoft.com/CSASPNETShowSpinnerImage-d7ac1552
VB version: http://code.msdn.microsoft.com/VBASPNETShowSpinnerImage-53ce1d10

This project illustrates how to show spinner image while retrieving huge amount of data. As we know, handle a time-consuming operate always requiring a long time, we need to show a spinner image for better user experience.

 

--------------------------------------------

New TFS Code Samples

CSTFSWorkItemLinkInfoDetails, VBTFSWorkItemLinkInfoDetails

Downloads
C# version: http://code.msdn.microsoft.com/CSTFSWorkItemLinkInfoDetail-d141169b
VB version: http://code.msdn.microsoft.com/VBTFSWorkItemLinkInfoDetail-e22ecdfd

The sample demonstrates how to get the link details of a WorkItemLinkInfo object.  The detailed information is like :

Source:[Source title] ==> LinkType:[Link Type] ==> Target:[Target title]

 

If you have any feedback, please fill out this quick survey or email us: onecode@microsoft.com

Posted On Wednesday, July 13, 2011 11:38 PM | Comments (3)
Check out the new All-In-One Code Framework demo in Channel 9

Mei Liang - one of the owners of All-In-One Code Framework was interviewed by Robert Green - the famous host in Channel 9 Visual Studio Toolbox, to introduce All-In-One Code Framework and demonstrate Sample Browser Visual Studio extension.

http://channel9.msdn.com/Shows/Visual-Studio-Toolbox/Visual-Studio-Toolbox-All-In-One-Code-Framework

All-In-One Code Framework Sample Browser and Sample Browser Visual Studio Extension give you the flexibility to search samples, download samples on demand, manage the downloaded samples in a centralized place, and automatically be notified about sample updates.

Sample download and management was a pain to many developers. In the past, developers download various samples to their local folders. They would easily forget where the sample was downloaded, and have to download the sample again and again. Now, Sample Browser allows you to download code samples with a single click. It automatically manages all downloaded samples in a centralized place. If a sample has already been downloaded, Sample Browser displays the "Open” button next to the code sample. If an update becomes available for a code sample, an [Update Available] button will remind you to download the updated code sample.

You can try out Sample Browser and Sample Browser Visual Studio extension from the following links:
http://1code.codeplex.com/releases/view/64539
http://visualstudiogallery.msdn.microsoft.com/4934b087-e6cc-44dd-b992-a71f00a2a6df

At the end of July, you will see a new version of the Sample Browsers with many novel features. Please follow up in twitter, facebook or the blog RSS feed to get the first-hand news. You are also welcome to email onecode@microsoft.com and tell us your suggestions.

Posted On Thursday, July 7, 2011 10:49 PM | Comments (9)
All-In-One Code Framework surpasses 1,000,000 downloads!

We are proud to announce the arrival of a key milestone through the All-In-One Code Framework project. With strong partnership, dedication and commitment, and big supports from the community, All-In-One Code Framework has now exceeded its Fiscal Year 2011 target of 1 million downloads - 10 times over our last year's download number!

All-In-One Code Framework reduces the efforts of developers in solving typical programming tasks. Sample codes are made available for download; reducing the time developers need to create commonly used codes. Every single sample code reduces the efforts of developers worldwide.

We want to share our gratitude for the strong supports from our customers and the developer communities such as MSDN, CodePlex, CSDN, and cnblogs. We want to thank IT media such as Softpedia, Microsoft News Center, MSDN news flash and social media, for helping us spread the word. We also appreciate the seamless partnership with over 8 business groups in Microsoft. This would not have been possible without them.

In Fiscal Year 12, we are preparing lots of new features, expansions, improvements and innovations around this project. We look forward to another outstanding year.

 

All-In-One Code Framework Team

 

----------------------
① Fiscal Year 2011 in Microsoft starts from July 2010 to June 2011

Posted On Monday, July 4, 2011 11:00 PM | Comments (4)
Advertise on this site through Lake Quincy Media
Tag Cloud