Displaying posts tagged with

“C#”

May
8
2010

Using unmanaged code/types from managed code

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 [...]

Apr
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 [...]

Apr
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

Apr
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 [...]