It has taken me a bit longer than expected, but I’ve finally got the screencast up!
That’s right folks, my angelic voice is now online for you all to experience. 8 minutes of Unity Build glory!
You are at the archive for the C++ category
The Magic of Unity Builds
I realise that as time goes by, people are using my beloved C++ less and less. .NET (C# and VB.NET) and Java seem to be taking over the mainstream coding world. Languages such as Ruby and Python seem to be taking over the scripting world. For the most part, C and C++ seem to exist [...]
WTF: Random Memory Contents
If any of you out there are able to give me ONE GOOD REASON why anyone would do something like this, then please let me know. Below are “customised” realloc() and malloc() I recently stumbled across (yes, they get called. A LOT):
[source:cpp]void *mcRealloc( void *P, int SIZE )
{
int oldSize = _msize( P );
[...]
Safer Code through Object-Orientation
In my current position I spend a lot of time battling against a fairly poorly-written C++ code base. The code, while technically written in C++, is actually more of a C-like “splat” with a few classes thrown in. Since I began working on this project I’ve seen many cases where proper object-orientation would have made [...]
Creating Concrete Objects
Being a fan of OOP, I tend to write a lot of object-oriented code. Coming up with a meaningful object model that behaves in an appropriate way is just as important as having a meaningful interface to your objects. A concrete object is an object that actually behaves in the manner you’d expect without any [...]
Extended-Precision Floating-Point Values in the CLR
While at work today I hit a problem that I’ve never hit before (which is quite rare these days ), and while it was frustrating it was also good to learn about something that I never knew was a problem. If you’re having some issues marshalling double-precision floating-point information through managed components to unmanaged [...]
Reversing DirectX & Blowfish
This tutorial has been on the boil for quite a while. I got close to nailing the problem late last month, but didn’t end up finding the time to finish it until this weekend. This tutorial is a solution to another Crackme, but this time it’s really not for the faint-hearted. Information [...]
A Reversing Tutorial
For a long time I’ve been interested in the lovely and exciting art of Reverse Code Engineering (RCE) and on more than one occasion I’ve been sucked in to spending hours and hours delving through pages of ASM code searching for the answer.
Today is no different. With Amy feeling pretty crook due to a nasty [...]
.NET System::String to ANSI char*
Hi All,
I’ve been doing a bit of work of late dealing with interops between managed and unmanaged code, and I have nailed a little snippet which shows how convert between a managed .NET String object and a stanard ANSI/C-style string. Check out the following code if you need to do the same:
[source:cpp]System::String managedString = WHATEVER;
System::IntPtr [...]
