Dark Bit Factory & Gravity

PROGRAMMING => C / C++ /C# => Topic started by: LittleWhite on July 26, 2009

Title: [C] Dynamic Constant Trick
Post by: LittleWhite on July 26, 2009
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
Title: Re: [C] Dynamic Constant Trick
Post by: hellfire on July 26, 2009
That was a joke; and design-fail.
Title: Re: [C] Dynamic Constant Trick
Post by: LittleWhite on July 26, 2009
Thanks for the clarification ;)