Qbasicnews.com
Option Nokeyword reversal? - Printable Version

+- Qbasicnews.com (http://qbasicnews.com/newforum)
+-- Forum: Qbasic "like" compilers/interpreters (http://qbasicnews.com/newforum/forum-5.html)
+--- Forum: FB Discussion & Programming Help (http://qbasicnews.com/newforum/forum-15.html)
+--- Thread: Option Nokeyword reversal? (/thread-10002.html)



Option Nokeyword reversal? - NovaProgramming - 06-15-2007

Hey,

I'm writing a new program, and I'm using Gfxlibttf (I think by Jofers?)

And you have to include Windows.bi, but it does Option NoKeyWord Point, and I want to use the Point command in my program. How do I get around this?


Option Nokeyword reversal? - class clown - 06-15-2007

You're using an old version of FB for one.

For two, I'm sure if jofers made it it can be compiled into a seperate module and linked, so you shouldn't need to include windows.bi

Lastly if you do have to include it, you're screwed, because MS thought it was a great idea to litter the general namespace with things like "this" and "point".

So, here's how you hack it.

Code:
function point2( byval buf as any ptr, byval x as integer, byval y as integer ) as integer
    function = point( buf, x, y )
end function

#include "windows.bi"

'' point2 now is the old point

This is cha0s btw.