Here’s some more stuff on references. As Mike Dunn commented on the previous blog entry, a reference cannot be re-referenced (for lack of a better word) to a different object. So if you have a reference, then it will always be an alias for the very same object it was an alias for when it [...]
Entries from August 2004
More on References
August 25th, 2004 · 2 Comments
Tags: C++
C++ References
August 24th, 2004 · 4 Comments
These days, I spend most of my free time trying to understand the C++/CLI language and syntax, and very often I have to refresh my native C++ knowledge. So, expect some basic C++ stuff during the next few weeks, and if you are an experienced C++ coder, then please skip these entries rather than going [...]
Tags: C++
A geek’s nightmare
August 11th, 2004 · 10 Comments
Dreaming of being an orphaned ref object that’s being hunted down by the Garbage Collector. I can imagine the GC, dressed in a sinister looking black suit, shouting at me asking me to slow down, and I run away as fast as I could through the partially compacted CLI heap, making loud protests of how [...]
Tags: General
Running your apps on a hidden desktop
August 9th, 2004 · 11 Comments
Here’s a technique to run a GUI application in a hidden manner. It’s not a big deal really and is not meant for espionage or any such activity; rather it’s just an useful trick to know if you want to run a desktop game when you are at work and you don’t want your boss [...]
Tags: Win32/MFC
Applying explicit on your constructors
August 2nd, 2004 · 9 Comments
I am not sure how many C++ developers out there use the explicit keyword or are even aware of its existence. It was only today that I actually took a look at what it does and I’d like to thank my friend Rama Krishna for some vauable pointers (not the C/C++ kind) he gave me. [...]
Tags: C++
const pointer versus pointer to const
August 1st, 2004 · 8 Comments
People new to C/C++ are sometimes confused about the difference between a const pointer and a pointer to const. A const pointer essentially means you can’t change the pointer variable itself, but you can change the value it points to. A pointer to const means you can change the pointer but not what it points [...]
Tags: C++