1. Pixel command
- Posted by Bryan Watts <BWatts1 at COMPUSERVE.COM> Aug 26, 1997
- 667 views
Hey to all. I seem to be having some difficulites. I recently purchased the = Complete Edition of Euphoria, and installed that on my machine. I moved all the files I had accumulated recently into the new Euphoria directory, and then deleted everything that had just been replaced with the Complete Edition. Now, for some reason, when I try to run a program with the pixel command in it, it gives me an error message stating: "Pixel not declared" I went into GRAPHICS.E and looked, and there is no pixel command. I looked at the constants at the top, and they said "--M_PIXEL --obsolete" and "M_GET_PIXEL --obsolete" I wonder if this has anything to do with it. If someone could just send me the code I need to put into GRAPHICS.E, it would be greatly appreciated. Thanks for any help. Regards, Bryan Watts
2. Re: Pixel command
- Posted by Robert Craig <rds at CLASSIC.MSN.COM> Aug 26, 1997
- 624 views
Bryan Watts writes: > I seem to be having some difficulites. I recently purchased the > Complete Edition of Euphoria, and installed that on my machine. > I moved all the files I had accumulated recently into > the new Euphoria directory, and then deleted everything > that had just been replaced with the Complete Edition. > Now, for some reason, when I try to run a program with the > pixel command in it, it gives me an error message stating: > "Pixel not declared" I went into GRAPHICS.E and looked, > and there is no pixel command. I looked at the constants > at the top, and they said "--M_PIXEL --obsolete" and > "M_GET_PIXEL --obsolete" I wonder if this has anything to do > with it. In moving from Euphoria 1.5 to Euphoria 1.5a, pixel() was changed from being a Euphoria routine in graphics.e to being a routine that is built in to ex.exe. (The same thing was done to get_pixel(), mem_set() and mem_copy()). This was done to boost performance on games etc. If you mix up ex.exe for 1.5 or earlier with graphics.e for 1.5a you will get the error "pixel not declared" when you try to use pixel(), because pixel() will not be defined in graphics.e *or* in ex.exe. > If someone could just send me the code I need to put > into GRAPHICS.E, it would be greatly appreciated. Don't do that. If you are really running ex.exe for 1.5a, then pixel() will *always* be declared. I strongly suspect that you still have ex.exe for 1.5 on your PATH. Only ex.exe for 1.5 or earlier could say that pixel() is not declared. Type: ex <Enter> <Enter> to see which version you are running. The proper procedure for upgrading is to: 1. Run install.bat for 1.5a and let it rename your existing EUPHORIA directory as FUPHORIA. 2. Copy from FUPHORIA any special files that you may have added to EUPHORIA\INCLUDE or other directories. *Do not* simply overwrite any of the 1.5a include files. If you have added your own routines within those files, you must carefully cut and paste them into the new 1.5a include files. As a general rule, it's better to make your own .e file, than it is to modify a standard .e file. Regards, Rob Craig Rapid Deployment Software