i% = DoMsgBox("'" + Ltrim$(Str$(GetProcessorType())) + "' is not a legal machine", szTitle$, MB_TASKMODAL+MB_ICONHAND+MB_OK)
GOSUB ASKQUIT
GOTO CHECKDOS
ENDIF
CHECKDOS:
' IF GetDOSMajorVersion() = 3 THEN
' IF GetDOSMinorVersion() = 3 THEN
' GOTO CHECKWINDOWS
' ENDIF
' ELSEIF GetDOSMajorVersion() = 4 THEN
' IF GetDOSMinorVersion() = 1 THEN
' GOTO CHECKWINDOWS
' ENDIF
' ELSEIF GetDOSMajorVersion() > 4 THEN
' GOTO CHECKWINDOWS
' ENDIF
' i% = DoMsgBox(Ltrim$(Str$(GetDOSMajorVersion()))+"."+Ltrim$(Str$(GetDOSMinorVersion()))+ " is not a legal DOS version", szTitle$, MB_TASKMODAL+MB_ICONHAND+MB_OK)
' GOSUB ASKQUIT
' GOTO CHECKDOS
CHECKWINDOWS:
IF GetWindowsMajorVersion() < 3 THEN
i% = DoMsgBox(Ltrim$(Str$(GetWindowsMajorVersion()))+"."+Ltrim$(Str$(GetWindowsMinorVersion()))+ " is not a legal Windows version", szTitle$, MB_TASKMODAL+MB_ICONHAND+MB_OK)
GOSUB ASKQUIT
GOTO CHECKWINDOWS
ELSEIF GetWindowsMajorVersion() = 3 THEN
' IF GetWindowsMinorVersion() <> 0 THEN
IF GetWindowsMinorVersion() = 0 THEN
' ELSEIF GetWindowsMinorVersion() <> 1 THEN
i% = DoMsgBox(Ltrim$(Str$(GetWindowsMajorVersion()))+"."+Ltrim$(Str$(GetWindowsMinorVersion()))+ " is not a legal Windows version", szTitle$, MB_TASKMODAL+MB_ICONHAND+MB_OK)
ENDIF
ELSEIF GetWindowsMajorVersion() > 3 THEN
' i% = DoMsgBox(Ltrim$(Str$(GetWindowsMajorVersion()))+"."+Ltrim$(Str$(GetWindowsMinorVersion()))+ " is not a legal Windows version", szTitle$, MB_TASKMODAL+MB_ICONHAND+MB_OK)
ENDIF
'$IFDEF DEMO '' Do not ask for name and organization
i% = DoMsgBox("It is recomended to use a TEMP-directory whith at least 3 MB free space. You have only " + Ltrim$(Str$(cbFree&)) + szKB$ + "!", szTitle$, MB_TASKMODAL+MB_ICONHAND+MB_OK)