Jump to content

  • Log In with Google      Sign In   
  • Create Account


Member Since 09 Dec 1999
Offline Last Active Private

Posts I've Made

In Topic: Reading binary file in C++ skips 0s?

Yesterday, 03:18 PM

The problem is that %X by itself doesn't print leading 0s. You probably want %02X. 

In Topic: Void Pointer

30 August 2016 - 08:34 PM

You probably want ReadP2PPacket(packet instead of ReadP2PPacket(&packet


The difference is writing to the memory you allocated versus the memory where the pointer is allocated.

In Topic: Win loop errors

20 August 2016 - 09:40 PM

First thing to jump out at me: you probably want an == instead of an = in your while loop condition.

In Topic: Linker Error - Can't Find The Cause.

04 August 2016 - 10:33 PM

Well, on some compilers you can link libraries with #pragma directives. Ex: #pragma comment(lib, "library_name.lib") on MSVC. Personally I hate it when libraries do it.

In Topic: Git Visual Studio *.vcxproj.filters file merge problem

26 June 2016 - 04:54 PM

Short answer: don't bother versioning the filters file. Those are the bits of the project file that got pulled out because they were related to non-code IDE state.