Qbasicnews.com
October 15, 2018, 08:28:19 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Back to Qbasicnews.com | QB Online Help | FAQ | Chat | All Basic Code | QB Knowledge Base
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Option Nokeyword reversal?  (Read 4662 times)
NovaProgramming
Been there, done that
*****
Posts: 1025



« on: June 14, 2007, 09:39:22 PM »

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?
Logged

ovaProgramming.

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

Quote from: "Haye, Phillip J."
 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.
-----------------------------
class clown
New Member

Posts: 17


Formerly known as cha0s ...


WWW
« Reply #1 on: June 14, 2007, 10:19:47 PM »

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.
Logged

Open source FTW
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!