Oxygen Basic

Programming => Example Code => Topic started by: Peter on September 16, 2011, 11:09:01 AM

Title: SourceCode
Post by: Peter on September 16, 2011, 11:09:01 AM
Deleted
Title: Re: SourceCode
Post by: kryton9 on September 16, 2011, 03:40:03 PM
Nice fun game.
Title: Re: SourceCode
Post by: kryton9 on September 16, 2011, 06:53:25 PM
I finally won in one of your games Peter :)  I guess playing a lot helps.
Title: Re: SourceCode
Post by: Charles Pegge on September 17, 2011, 01:01:17 AM

Thanks Peter.

Corrections needed so this will run with present and future Oxygen:

FourWins.bas line 722
to ensure a procedure does not look like a label
WinEnd: ExitProcess 0
WinEnd : ExitProcess 0

Window.h line 506
to ensure a procedure does not look like a label
WinEnd: ExitProcess 0
WinEnd : ExitProcess 0

Window.h line 481
to pass the address of a string literal to a 'long' type
wc.lpszClassName = "Oxygen"
wc.lpszClassName = @"Oxygen"

Charles
Title: Re: SourceCode
Post by: Aurel on September 17, 2011, 03:46:50 AM
Uff i don't know there is a lot of changes and this is a process ,we must
understand this things ,i understand because i have my own small language
and i know all problems connected with that things.
However i use 032 version and most things works ok.

About GUI i found in oxygen src this:
#include once "windows.bi"
maby this binary couse problems with wndclassex .
just guessing nothing else ;)

With all this problems i think that Charles doing great job :)
Title: Re: SourceCode
Post by: Charles Pegge on September 17, 2011, 05:44:00 AM

Peter,

Past errors and syntax ambiguities have to be corrected. If you encounter obscure errors, please show me. I do not recommend using older versions, especially in the alpha phase, where there are potential memory leaks and other hidden problems.

Charles
 
Title: Re: SourceCode
Post by: Aurel on September 17, 2011, 07:04:32 AM
Heh Peter is a ' joke-er' man like always but you cannot compare something
like pure interpreter written in basic with compiler. :)
Title: Re: SourceCode
Post by: Charles Pegge on September 17, 2011, 08:50:02 AM
Peter,

Those changes were necessary for the broad spectrum of coding styles. They were not done on a whim or for idealogical reasons, and certainly not to annoy Peter.

with those three alterations (2 spaces and an '@' :) ), I FourWins will compile into an independent Exe using RTL32.inc

Code: OxygenBasic
  1. $FileName "FourWins.exe"
  2. Include "RTL32.inc"
  3. ...
  4.  


Charles

The zip below requires the fMedia folder
Title: Re: SourceCode
Post by: Aurel on September 17, 2011, 09:31:31 AM
Quote
I FourWins will compile into an independent Exe using RTL32.inc
Hey that is great  ;)
Charles which version of oxygen u use for this?
Title: Re: SourceCode
Post by: Charles Pegge on September 17, 2011, 12:37:55 PM
Hi Aurel,

Using the Oxygen in-progress version, shortly to be released as A037.

Charles