Re: Learn DOS or Win32 first?
- Posted by Graeme <graemeburke at CROSSWINDS.NET> Dec 19, 2000
- 482 views
At 04:45 PM 18/12/00 -0500, you wrote: >So if I understand what you are saying...the win32lib is completely >different than the Euphoria Dos language? Or is the Euphoria language used >to write the win32lib and ide? In other words if I open up the win32lib or >a win32 program in an editor it is a different programming language than >euphoria? Or does euphoria somehow access the windows code? Euphoria is one launguage. All of the basic EU structures and commands are common throughout. It has two interpriters; ex.exe is for DOS, exw.exe is for WINDOWS. ex has a some dos only stuff (like dos_interrupt), and exw has the ability to link to and call routines from .dll files. APart from that they are basically the same (to the naked eye, anyway). The windows OS is housed within DLL files, so using exw it is possible to call functions from the OS, however it is quite a long and involved process, so David Cuny developed win32lib.ew, which is a library designed to interface with windows. Using win32lib is the easiest (but not only) way to write EU Win programs. It contains a stack of global functions, procedures and constants which deal with the windows objects. The IDE is based on win32lib. As I understand it, (don't use it myself) it's basically a visual design tool to take care of the sizing and placement of objects and windows. It has code editing facilities, but the code is still EU code. If you are familiar with windows objects and their properties (maybe through VB? et.al.) it is pretty easy to look up the win32lib equivelant for the command you are trying to execute. If you are not then windows may take some getting used to. Where to start? Start by getting used to euphoria itself. This is probably easiest under DOS using simple text in and out like gets() and puts(). Explore the sequence, it's a fantastic data type, just when you think you've seen it all, you find another way to use one. Get used to the append() command and '&' operator. Convert a few simple programs from one of your other favourite launguages. By the time you've got this far, Euphoria's exquisite simplicity will have made itself apparant and you will suddenly have more ideas and projects underway that you have hours in the day. But get youself a little project underway, as I said, convert an old program or something. This makes it a lot easier to ask questions and get answers from the list. A "how do I do XYZ" question usually gets a lot more replys than a general "Help, where do I start?" Hope this helps, Graeme. (Brisbane, Australia) ----------------------------------------------------