Archive for C++

DirectDraw Overlay Library released

I have released a beta of the overlay library at codeplex, here. The current version features the C++ library only, until I iron out some remaining issues.


Comments (8)

gethostbyname – First chance exception 0x000006C5: The tag is invalid

When running a Win32 application on WOW64, you’ll get such a first-chance exception–but the code will continue to work as usual. The exception only slows down operation. See: Bug report

Just to (hopefully) help those who google the above error.

Comments (8)

Having DirectX Memory Leaks?

You shouldn’t. Really. Realize that there is a concept called “smart pointers“. These act just like normal pointers, except that they take into consideration the forgetfulness of humans–they make sure you don’t end up leaking something.

Now, if you didn’t know that smart pointers existed, you have a problem. A big one–you don’t know your language. It is very unfortunate that the vast majority of people choose to start with a very complex language like C++, when it only hinders their learning and development. If you’re still at an early stage, new to programming, don’t start with C++. Learn a simpler, more elegant high-level language–e.g., C#.

If you do insist on taking the C++ route, spend a couple of days reading about COM, and then check out Smart COM Pointers. Also keep in mind that there exists an excellent collecton of libraries known as boost, and that it does have smart pointers.

Good luck.

Leave a Comment