12-06-2004, 09:10 PM
When compiled for the GUI, I've found that at least on my system, a TinyPTC app will work with inkey$. Weird.
Anyways...ran into another problem. Still in porting my TinyPTC extension library, I ran into this issue with arrays...I pass a non-zero index of an array to a function, and fbc crashes. Flat-out. Here's an example:
This makes the compiler hard-crash. I've made FONT_OFFSET as both a const (this is what it was originally) and a variable. Is it a problem in the function argument, or is it a bug?
The full source can be found here:
http://www.lostsocksoftware.com/ptcstuff.bas
Anyways...ran into another problem. Still in porting my TinyPTC extension library, I ran into this issue with arrays...I pass a non-zero index of an array to a function, and fbc crashes. Flat-out. Here's an example:
Code:
Sub PTC_Get(startX As Integer, startY As Integer, destX As Integer, destY As Integer, buffer() As Integer)
'this is the declaration for the routine I'm calling
... code ...
'now here's where I call it:
PTC_Get whereX, whereY, whereX + 7, whereY + 7, fontbuffer(charCounter * FONT_OFFSET)
The full source can be found here:
http://www.lostsocksoftware.com/ptcstuff.bas
I'd knock on wood, but my desk is particle board.