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
If you like this post, please visit our sponsors above. Thanks!
25
2010
Matlab GUI-Radio Buttons: What I learnt Today?
If you like this post, please visit our sponsors above. Thanks!
Introduction
In this Matlab GUI Tutorial, you will learn how to use radio buttons, toggle buttons and the button group panel.
Share on Facebook
25
2010
Arrays in C++
If you like this post, please visit our sponsors above. Thanks!
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#
If you like this post, please visit our sponsors above. Thanks!
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?
If you like this post, please visit our sponsors above. Thanks!
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?
If you like this post, please visit our sponsors above. Thanks!
In this tutorial I would explain how to create a simple Ribbon Control using Windows Presentation Foundation.
Image Courtesy MSDN.
Share on Facebook
21
2010
How to Easily Download Large Number of Images from Flicker.com
If you like this post, please visit our sponsors above. Thanks!
Recently I needed some images to create a dataset for a project I am doing. While Flickr.com seemed to be the best source. All i needed to do was to put in a query and a large number of relevant images would show up. But downloading original images from Flickr.com can be bit of a [...]
15
2009
Two values one address—A challenge for programmers
If you like this post, please visit our sponsors above. Thanks!
Have a look at this code, it shows some astonishing results.
1: #include <iostream.h>
2: using namespace std;
3:
4: int main()
5: {
6: const int x = 10;
7: int [...]
4
2009
3
2009
Reversing words in a string
If you like this post, please visit our sponsors above. Thanks!
Problem statement: Given a string you have transform the string such that the order of words in the string is reversed.
Input: This is a string
Output: string a is This
Share on Facebook
Generating Documentation from XML Comments in C#
If you like this post, please visit our sponsors above. Thanks!
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 [...]