Windows Forms III – Dynamic Layout

I’m not going to belabor my blog with yet another code explanation.  I’ve converted the dynamic layout example (found here) from C# to C++.  It isn’t especially interesting, but it is good groundwork for later examples and projects. Get the code!  You can download this dynamic layout example here.  As usual, both old and new…

2

CmdLiner – a break from Windows Forms

This will be the third time I tried to start this post.  Let’s see if I get derailed yet again, or if I can actually finish it this time and get it up on the blog.  To break from the monotony of Windows Forms, I’m uploading a snippet that wasn’t originally intended to be a…

3

Hello World from Windows Forms, MK II.

Now that we’ve gotten our feet wet, it’s time to try something a bit more complicated.  We’ll include a TextBox and a Button in this example, and also take a quick look at how we wire up events on actions like button clicks.  I’m going to be skipping the explanation for code that we’ve already seen,…

2

Hello World from Windows Forms!

It begins… This will be a new series of articles.  I’ll start with some ports of existing samples (from here), and move into some original material.  I want to take a Managed C++ (and specifically a Whidbey C++) approach to Windows Forms, and investigate what exactly we can do with this powerful library.  I’ve created…


loc – my own simple .NET version of the unix ‘which’ facility

As is often the case, I wrote a small program to do something useful for myself.  I have a (Win32) copy of the unix “which” utility, but I wanted something that would simultaneously search my path, include, and lib environment variables.  What I came up with was loc, and it is a pretty simple, but…

6

PtrToStringChars v2 remix

A while back, in order to get some code to compile, I had to update PtrToStringChars (found in vcclr.h) to work in the new Whidbey C++. In case anyone wants this, I’ve posted my implementation (and a small main() to drive it) here: p2sc.zip. Keep in mind: this is my personal implementation, and not necessarily…

1

Simple stack code

We’ve got a code sample today, of a simple integer stack implemented using Whidbey C++.  I’ll implement it using three pieces of code: stack.h – definition of the stack stack.cpp – implementation of the stack main.cpp – driver program that makes use of the stack I compile the stack class into a DLL (stack.dll), which…

12