• Welcome to Dark Bit Factory & Gravity.
 

[C] Dynamic Constant Trick

Started by LittleWhite, July 26, 2009

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

LittleWhite

Hello coders o/

I am a bit embarrassed about a little article in the Hugi #31.

This is the article on a way to "break" the const keyword with windows specific functions.
I wanted to try the trick mentioned by shadez, but when I tried to compile, VS2005 (and also 2008) do not recognise the function.

You can see the article here: http://www.hugi.scene.org/online/hugi31/hugi%2031%20-%20coding%20corner%20shadez%20dynamic%20constants.htm

Some things amazed me, for example, the functions mentioned are unknown from Google but also from the MSDN.
Other point, why this kind a code will be findable into the multimedia library of Windows :s
and finally, this code will be able to break the const keyword...

So, if someone know how to run the code, I will be very happy.
( If someone can tell me that was a joke, I will be also very happy ;) )

Thank you
The demoscene will never die, never!

hellfire

That was a joke; and design-fail.
Challenge Trophies Won:

LittleWhite

Thanks for the clarification ;)
The demoscene will never die, never!