Hi,
I am having allsorts of problems with getting my programs to run successfully under Windows Vista, And tinyptc. With any of the following Freebasic versions, 16, 17, 18.
There are no compile errors, all that happens is that Windows Reports to me that the programs executable has failed and asks for me to close it.
There's a couple of programs that do work, and 90% that don't.
Basic framework I use for TinyPTC is.
#include once "tinyptc.bi"
#Include Once "Windows.bi"
#Include Once "crt.bi"
Dim Shared ScreenBuffer(640*480)
Declare Function KeyHit( ByVal KeyChar As Integer ) As Integer
While KeyHit(27)<>TRUE
PTC_Update @ScreenBuffer(0)
Erase ScreenBuffer
Wend
PTC_Close()
Function KeyHit( ByVal KeyChar As Integer ) As Integer
If (GetAsyncKeyState(KeyChar) And 32768) Then
Return True
Else
Return False
End If
End Function
Any solutions would be wicked and awesome, and thanks in advance.
Clyde.