The Latest

DevX

Automate Resource Management with shared_ptr

td::auto_ptr is the only smart pointer class available in C++98. Alas, since this class is neither assignable nor copy-constructible, creating containers of auto_ptr objects is illegal. This limitation has been

DevX

Using Recursion Efficiently

It’s important to use recursion carefully to avoid running into stack overflow. This sample code reverses a given integer number using recursion: #include “stdafx.h”int myreverse(int num){ static int nLocal =

DevX

Developing Windows Forms Applications on Mono

ross-platform software development means different things to different people. For many programmers immersed in Microsoft languages such as VB.Net or C#, the real test comes down to creating a Windows

DevX

UML for the Software Developer, Part 5: Component Diagrams

ccording to Clemens Szyperski (author of “Component Software?Beyond Object-Oriented Programming,”), software components are binary units of independent production, acquisition, and deployment that interact to form a functioning system. He continues

DevX

Inheritance 101

isual Basic developers had wanted inheritance for what seems like decades. The feature finally made it into VB.NET, making VB.NET an official object-oriented language. By now you are probably already

DevX

VB Paradigm Shift

ver the last few months, the blogosphere has been waging a battle for continued development and support for VB6. This battle reached its crescendo a few weeks before Microsoft’s schedule

DevX

Are We There Yet?

dmit it. You’re dying to know. How did the cross-country move, with four cats on a packed American Airlines Luxury Liner (if ever there was a misnomer, that’s it) go,

DevX

Capturing the ESCAPE Key Event

Consider a scenario where a dialog is launched from a panel which itself was launched by another panel. It’s very tedious to get the dialog disposed when the ESCAPE key

DevX

Am I a Mad Scientist?

o you want to save keystrokes? Do you want to ease maintenance? Do you want inline information about the code structures that you’re working with? How about statement completion? Are

DevX

Five Great Patterns for Dealing with References

n a UML class model, classes are described by having attributes, operations, and relationships with other classes. When such a model is converted into code, both the public attributes and

DevX

Dynamically Remove HREF from the Anchor Tag

Sometimes you need to remove a link from an anchor tag dynamically. You can do this with JavaScript.Take a look at this example: Devx To remove the link (i.e, the

DevX

Read the Entire Text Element

SAXParser’s DefaultHandler provides a callback for public void characters(public char[] ch, int start, int length, etc.) and throws a SAXException for reading element text contents. You can read the char