You cannot declare a handle type in a native type. vcclr.h provides the type-safe wrapper template gcroot, to refer to a CLR object from the C++ heap. This template lets you embed a virtual handle in a native type and treat it as if it were the underlying type.
The gcroot template is implemented using the [...]
8
2010
Using unmanaged code/types from managed code
25
2010
Arrays in C++
Introduction
In some programs, you may need to represent a list of items that share some characteristics. You can declare as many variables as necessary to represent such items. Here is an example of 5 numbers declared in a program:
// This is the main project file for VC++ application project
// generated using an Application Wizard.
#include [...]
25
2010
Arrays in C#
This tutorial describes arrays and how they work in C#.
Tutorial
This tutorial is divided into the following sections:
Arrays in General
Declaring Arrays
Initializing Arrays
Accessing Array Members
Arrays are Objects
Using foreach with Arrays
Share on Facebook
19
2010
Using Ribbon Control with Windows Forms: What I Learnt Today?
Recently I have been exploring the use of Ribbon Control. Yesterday, I posted a tutorial on its use with Windows Workflow Foundation. However, I am far more comfortable developing applications with Windows Forms compared to WPF. So, I searched for Ribbon Control for Windows Forms. Although I found an open source version here, there was [...]
18
2010
Create A Simple WPF Ribbon Control: What I learnt Today?
In this tutorial I would explain how to create a simple Ribbon Control using Windows Presentation Foundation.
Image Courtesy MSDN.
Share on Facebook
4
2009
24
2009
Writing Unified Scalable Application Logic: Windows Workflow Foundation
Everyone who writes applications or creates software wants to create scalable and easy to understand solutions. The problem however is that simple software is not scalable and scalable applications can get too hard to understand because of their distributed logic development.
Share on Facebook
30
2009
Form Based Authentication in ASP.NET
This article demonstrates how to implement forms-based authentication by using a database to store the users.
Share on Facebook
29
2009
Windows Forms: Getting Started I
This tutorial contains some basic topics regarding getting started with windows forms.
All the data is courtesy MSDN.
Share on Facebook
Generating Documentation from XML Comments in C#
C# allows developers to embed XML comments into their source files—a useful facility, especially when more than one programmer is working on the same code. The C# parser can expand these XML tags to provide additional information and export them to an external document for further processing. This article shows how to use XML comments [...]