Jump to content

  • Log In with Google      Sign In   
  • Create Account


Member Since 06 Feb 2011
Offline Last Active Nov 05 2014 03:22 AM

Posts I've Made

In Topic: Reading PNG format (deflate compression)

22 October 2014 - 09:01 AM

So I assume you are not wanting to use zlib?


Id suggest you tackle this the same way I believe libpng does. Get a working DEFLATE first (i.e. implement your own version of the zlib decompression stuff, which you can also test easily against zlib on simple binary strings for correctness), then use that to implement the PNG decoding stuff.

In Topic: Converting project code from VS13 to Code::Blocks, massive amount of errors

16 October 2014 - 06:39 AM

Thats not really a "genuine bug". If you turn off the MSVC extensions switch you get the correct error for the reference thing, or you can enable the relevant warning, or you can make that warning an error. There just accommodating old code by default there, because it is already hard enough to get enterprises to upgrade (and even on Linux, I had to write code for GCC 4.1 not long ago, making changes that effect old programs or code just really does not go down well).



The warning, off by default (I suppose you could argue that maybe, but some enterprises like there "treat warnings as errors" then complain about every little thing when an update breaks the build...):

warning C4239: nonstandard extension used : 'argument' : conversion from 'Vector2f' to 'Vector2f &'

If you turn extensions off entirely

error C2664: 'void func(Vector2f &)' : cannot convert argument 1 from 'Vector2f' to 'Vector2f &'


GCC has some non-standard features as well. e.g. for c++ see https://gcc.gnu.org/onlinedocs/gcc-4.0.4/gcc/C_002b_002b-Extensions.html. And I recall GCC has some compliance issues as well, like two-phase-lookup not being completely perfect? Likewise Linux/GCC programmers seem to be forever depending on things from POSIX that are not actually C/C++ so porting them off of GCC/Linux is far harder than it should be, even when not dealing with GUI's, etc, so just because its a GCC compatible lib that process some data (no network,gui,drivers,etc.), in my experience can still mean that "porting is incredibly difficult"....

In Topic: New Resource for Free Music

10 October 2014 - 06:27 AM

ogg/vorbis should not be bigger than mp3 for a given quality (its just another, but different lossy compression format). I guess some people might want flacs, but yeah, hosts can be picky about these things, even paid ones...

In Topic: Sound in Windows Text Game

09 October 2014 - 01:40 PM


Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]


Mmsystem.h (include Windows.h)






I don't know what compiler your using but if you got that far you must have the windows SDK. So you just need to also tell it to use that library as listed in the docs.

In Topic: using xml for crafting recipes

09 October 2014 - 11:58 AM

yeah, go for the easiest format. e.g. for my recipes they are actually currently just 1 recipe per line as space separated values, because it let me read the recipes directly from an std::ifstream with basically no messing around (and at the time, the project did not have any ini/xml/json support).