Author Topic: Tiny PTC Extension Problems  (Read 2879 times)

0 Members and 1 Guest are viewing this topic.

Offline Clyde

  • A Little Fuzzy Wuzzy
  • DBF Aficionado
  • ******
  • Posts: 7271
  • Karma: 71
    • View Profile
Tiny PTC Extension Problems
« on: July 06, 2008 »
For some daft reason the following code running under vista ultimate with service pack 1, makes it's self not work and closes upon compiling.

Thought I'd let you know, and perhaps there's a solution.

Code: [Select]
Option Static
Option Explicit

#Include Once "TinyPtc_ext.bi"
#Include Once "Windows.bi"

Const XRES=640
Const YRES=480

Const ARES=XRES*YRES

Dim ScreenBuffer(ARES)


Ptc_SetDialog(1,"Would You Prefer Fullscreen Dude?",0,0)

If( ptc_open( "Tester", XRES, YRES ) = 0 ) Then
    End -1                                   
End if

Dim Key As String

While Key<>Chr(27)
   
    PTC_Update@ ScreenBuffer(0)
   
    Key=Inkey()
   
    Erase ScreenBuffer
   
Wend

PTC_Close()

Cheers and many thanks,
Clyde.
« Last Edit: July 06, 2008 by Clyde »
Still Putting The IT Into Gravy
If Only I Knew Then What I Know Now.

Challenge Trophies Won:

Offline Shockwave

  • good/evil
  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 17409
  • Karma: 498
  • evil/good
    • View Profile
    • My Homepage
Re: Tiny PTC Extension Problems
« Reply #1 on: July 06, 2008 »
It works perfectly here Clyde.

I know this sounds stupid but have you tried running it with an older version of Freebasic?

I dont thing Rbz's ptc ext is compatible with the shit new oop versions
Shockwave ^ Codigos
Challenge Trophies Won:

Offline Rbz

  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 2757
  • Karma: 493
    • View Profile
    • https://www.rbraz.com/
Re: Tiny PTC Extension Problems
« Reply #2 on: July 08, 2008 »
@Clyde: I've no idea what could cause this problem, I don't have Vista here.

Does freebasic original tinyptc works for you ?
Challenge Trophies Won:

Offline Clyde

  • A Little Fuzzy Wuzzy
  • DBF Aficionado
  • ******
  • Posts: 7271
  • Karma: 71
    • View Profile
Re: Tiny PTC Extension Problems
« Reply #3 on: July 08, 2008 »
This is strange as just one particular project stops working with both the extension and regular tinyptc. And Im using an older version of Freebasic too.
Still Putting The IT Into Gravy
If Only I Knew Then What I Know Now.

Challenge Trophies Won:

Offline DrewPee

  • I Toast Therefore I am
  • Pentium
  • *****
  • Posts: 563
  • Karma: 25
  • Eat Cheese - It's good for you!
    • View Profile
    • Retro Computer Museum
Re: Tiny PTC Extension Problems
« Reply #4 on: July 08, 2008 »
Clyde,
I running Vista Ultimate (32bit) version (fully updated), and that runs okay on my machine?

Andy
DrewPee
aka Falcon of The Lost Boyz (Amiga)
Ex-Amiga Coder and Graphic Designer
Administrator of > www.retrocomputermuseum.co.uk