Author Topic: [C] Dynamic Constant Trick  (Read 3298 times)

0 Members and 1 Guest are viewing this topic.

Offline LittleWhite

  • Senior Member
  • Amiga 1200
  • ********
  • Posts: 418
  • Karma: 31
  • It's me!
    • View Profile
[C] Dynamic Constant Trick
« 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
The demoscene will never die, never!

Offline hellfire

  • Sponsor
  • Pentium
  • *******
  • Posts: 1294
  • Karma: 466
    • View Profile
    • my stuff
Re: [C] Dynamic Constant Trick
« Reply #1 on: July 26, 2009 »
That was a joke; and design-fail.
Challenge Trophies Won:

Offline LittleWhite

  • Senior Member
  • Amiga 1200
  • ********
  • Posts: 418
  • Karma: 31
  • It's me!
    • View Profile
Re: [C] Dynamic Constant Trick
« Reply #2 on: July 26, 2009 »
Thanks for the clarification ;)
The demoscene will never die, never!