Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Option Nokeyword reversal?
#1
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?
ovaProgramming.

One night I had a dream where I was breaking balls. The next morning, BALLSBREAKER was born.

Quote: Excellent. Now you can have things without paying for them.

BALLSBREAKER 2
~-_-Status Report-_-~
Engine: 94%
Graphics: 95%
Sound: 100%
A Severe Error has crippled BB2 for the time being... I have to figure it out, but until then you won't see much of it Sad.
-----------------------------
Reply
#2
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.
Open source FTW
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)