1. I'm having trouble getting off the ground with Ver4

I took a break from programming in Euphoria for a couple of years because I knew that Ver.4 was being developed and if I was to 'hurt my brain' with Windows programming, it had better be good. I have just downloaded euphoria-4.0.3 and installed the new version 4.0.3 in Windows 7 (64-bit).

I have read the introductory pages of the Euphoria pdf manual, appreciate that Windows in its new incarnations (Vista and 7) is in a state of flux and that many of the old XP systems have changed, but I can't get past square one with this version 4:

- page 2 of the manual says "A full-screen multi-file editor is also included", and page 23 says the editor is "ed". I found ed.bat and ed.ex in Euphoria\bin, but both open a mini window that is far from full-screen - and can't be sized. Can anyone suggest a more readable alternative? Is there a better editor that allows me to run the program I write while I am still editing things (like the DOS editors with version 3)?

- Dos executables I wrote with version 3 won't run on Windows 7 64-bit - give me an error that they were meant for a 32-bit OS. I see some discussion in the forum about development of a 64-bit version of Euphoria 4. Will a version 4 based executable (with Windows) written with a GUI-based program like EuWingui work on my Win7 (64-bit) set-up? The manual says version 4 works with Win7, but I am not clear whether it works with 64-bits. Can I write programs that will work on 64-bit systems?

- I have tried to set up euwingui2 (Jim Brown) for Windows programming - it gave me an error about not having EUDIR in autoexec.bat and shut down, but there is no autoexec.bat in C:\ in Win7. So I looked for "System and Maintenance" under Control Panel per the manual page 14. I finally found something remotely resembling the manual's directions under "System" - "Advanced system settings" - "Environment Variables" and added EUDIR as C:\Euphoria. I hope I guessed correctly! EuVIDE now opens, but I now get error message "can not read coloredbuttons.ew."

- after installing euphoria-4.0.3, I checked the directory map on page 16. The "packaging (software for making installation packages)" is not there.

Conclusion: The manual sure leads me to believe that version 4 is a gigantic step above version 3.1. But my first encounters show that the instructions are misleading. One is led to believe that the installation file takes care of the proper set-up for Windows 98 to 7 at least and that one is then able to get down to writing and testing code. In fact getting going is not anywhere as simple as version 3.1 (and earlier versions) - where one quickly enjoyed the pleasure of programming in a language as brilliant as Euphoria.

I have been reading the forum postings for years without having to write anything, because I was usually able to move ahead in my coding. But this time I am stuck at square one.

Can someone help with simple instructions to point me in the right directions?

Thank you in anticipation of your help.

new topic     » topic index » view message » categorize

2. Re: I'm having trouble getting off the ground with Ver4

svnx said...

- page 2 of the manual says "A full-screen multi-file editor is also included", and page 23 says the editor is "ed". I found ed.bat and ed.ex in Euphoria\bin, but both open a mini window that is far from full-screen - and can't be sized.

This is because in earlier versions of Windows you could go full screen by pressing a keyboard shortcut (Alt-Enter?) and it was possible to make this happen by edfault via a shortcut.

All versions of Euphoria are in the same boat here (other than the DOS only editions which will not run at all for you, for reasons explained below).

svnx said...

Can anyone suggest a more readable alternative? Is there a better editor that allows me to run the program I write while I am still editing things (like the DOS editors with version 3)?

There's the IDE. I think EuWinGUI came with its own editor as well.

There's also support for 4.0 for editors such as Geany or Crimson. And, for editors which support this, the ability to launch Euphoria programs right from the editor.

Some of these can be found at http://scm.openeuphoria.org/hg/editors/

A useful project might be to attempt to "port" your current editor for Euphoria code to work with 4.0 and its new executable names.

svnx said...

- Dos executables I wrote with version 3 won't run on Windows 7 64-bit - give me an error that they were meant for a 32-bit OS.

But that only applies to DOS. version 3 Windows executables should work fine.

svnx said...

I see some discussion in the forum about development of a 64-bit version of Euphoria 4. Will a version 4 based executable (with Windows) written with a GUI-based program like EuWingui work on my Win7 (64-bit) set-up? The manual says version 4 works with Win7, but I am not clear whether it works with 64-bits. Can I write programs that will work on 64-bit systems?

Yes, 32bit Windows programs will run on 64bit Windows. That backwards compatbility exists.

Using a 32bit library like EuWinGUI will also work on 64bit Windows - if your executable is 32bit. (Mixing 64bit executables with 32bit libraries or vice versa won't work, however.)

svnx said...

- I have tried to set up euwingui2 (Jim Brown) for Windows programming - it gave me an error about not having EUDIR in autoexec.bat and shut down, but there is no autoexec.bat in C:\ in Win7. So I looked for "System and Maintenance" under Control Panel per the manual page 14. I finally found something remotely resembling the manual's directions under "System" - "Advanced system settings" - "Environment Variables" and added EUDIR as C:\Euphoria.

4.0 uses config files (the default name is eu.cfg), and while EUDIR and EUINC are still supported the idea is to get everyone to gradually stop using them.

euwingui2 doesn't understand these files (since it was written before 4.0) so it probably still needs EUDIR to function correctly. This means you'll need to keep eu.cfg and EUDIR in sync (or not use any Euphoria config files at all and just use EUDIR).

svnx said...

EuVIDE now opens, but I now get error message "can not read coloredbuttons.ew."

My first guess is that the intepreter doesn't know the location of euwingui2 and its include files.

Try setting EUINC? Not sure if euwingui2 and EuVIDE support EUINC, but it's worth a try.

svnx said...

- after installing euphoria-4.0.3, I checked the directory map on page 16. The "packaging (software for making installation packages)" is not there.

Um... that's for creating the installation package for Euphoria itself.

svnx said...

Conclusion: The manual sure leads me to believe that version 4 is a gigantic step above version 3.1. But my first encounters show that the instructions are misleading. One is led to believe that the installation file takes care of the proper set-up for Windows 98 to 7 at least and that one is then able to get down to writing and testing code.

Overall, this is true. euwingui2 is an exception because it's partly closed source and difficult to update by anyone other than the original developer for that reason. It was lasted updated to work for version 3 (although I believe the original developer is working on a version 4 update) and while it will work with version 4, it might take a bit more work - especially if one is also new to 4.0 in general.

svnx said...

In fact getting going is not anywhere as simple as version 3.1 (and earlier versions) - where one quickly enjoyed the pleasure of programming in a language as brilliant as Euphoria.

I have been reading the forum postings for years without having to write anything, because I was usually able to move ahead in my coding. But this time I am stuck at square one.

Can someone help with simple instructions to point me in the right directions?

Thank you in anticipation of your help.

To help get your feet wet, I'd recommend trying out a few simpler console apps with euic, just to get the hang of using 4.0

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu