Re: Need an other phix explanation please

new topic     » goto parent     » topic index » view thread      » older message » newer message

Hi

I think Matt may have included the win32lib7 folder that I created when I added the most 'up to date' immplementation of win32lib to Phix.

If you use the ld win32demo folder, then there are quite a few gotchas in there that need to be looked out for when you try to run them.

First, if you have euphoria installed, then these demos in the w32demo folder will try to access them, because of the path settings that eu creates when it is installed. I have eu installed and I avoid these by always running phix programs from edita having set the paths to p.exe from within edita - pressing F5 then compiles and runs the program.

Next comment out the reference to the includes - Phix doesn't need them if they are 'standard' includes. This is the top of star.exw

--DEV port to Arwen, add to distro: 
-- As posted to EuForum 24/11/2012 by Derek Parnell 
include win32lib.ew  
--include std/math.e  

note that include std/math.e has been commented out.

Next look at line 59

        theta = rnd()*TWOPI 
 
should be 
 
        theta = rnd()*PI*2 
 

Next, see that include w32lib.ew line - thats an include to a shim so that I can tell the program where the version of win32lib is that I want to run - make sure you have this in the folder

--the contents of win32lib.ew in the w32demos folder 
--NB this does NOT work on RDS Eu!  (Phix compatible) 
--include ..\win32lib\win32lib.ew 
--include ..\win32lib6\win32lib.ew 
--include ..\win32lib6x\win32lib.ew 
--include ..\w3270a\include\win32lib.ew 
--include ..\win32lib7\include\win32lib.ew  --DEV remove 
include ..\win32lib7\win32lib.ew 

As you may have guessed that's a relative include - basically says go one up from this folder, find win32lib7, go into that folder, and load in win32lib.ew

Note, my setup has win32lib6, and win32lib7 folders - the win32lib7 is (for me) the more up to date one, and the one which I am (ever so slowly) working to get a Phix win32lib IDE running on. I mean slowly / stalled / starting / stalled / oo, another star trek discovery episode's arrived.

I know that Pete is quite keen to use IUP, which does have some promise, but with a lot of these toolkits you have to hand code them which takes the fun out of it for me.

Cheers

Chris

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu