Re: Changing from DOS to Windows IDE[interupted]
- Posted by JAYBEEDEE <daviesjb at l?v.?c.uk> Jan 13, 2008
- 585 views
don cole wrote: > > Dan Moyer wrote: > > > > don cole wrote: > > > > > > JAYBEEDEE wrote: > > > > > > > > I'm sure this has come up before, but I cannot find anything on it. > > > > > > > > I'm a comparative newbie, but have written a largish program in Euphoria > > > > DOS > > > > using edita.exe. > > > > Basically, it reads data from a txt file into a massive array (3 > > > > dimentional > > > > sequence), does a lot of processing, > > > > and then writes the results to another txt file. > > > > > > > > Include files are get.e and sort.e > > > > > > > > Within the code are 2 procedures and 2 functions. > > > > > > > > Can someone point me towards some text describing how to go about > > > > disassembling > > > > this > > > > program so that I can run it under Windows using Judth's IDE. Perhaps > > > > someone > > > > could > > > > outline some elementary principles. > > > > > > > > As the output is to a file all I need is a window with a START button. > > > > > > > > I tried pasting the whole set of code into a window, but running > > > > produced all > > > > sorts of errors > > > > Wouldn't recognise the include files for a start. > > > > > > > > Are the include files different under windows? > > > > > > Hello JAYBEEDEE, > > > > > > What I would do is change your dosprog from dosprog.ex to dosprog.e. > > > > > > Then use IDE to create a window and a 'start' button. > > > > > > Save it with launch/pass control to editor of your choise (Edita I > > > assume). > > > > > > Add to it include dosprog.e and > > > > > > procedure onStartfdIO; INTERUPTED > > > setHandler(startButton,w32HClick,routine_id("onStartButton")) > > > Don Cole > > > > > > I'm not sure whether Don's suggestion will work or not (not saying it won't, > > just not sure if it will), but I don't think you have to add the "include > > dosprog.e" > > via an external editor, you can do it within the IDE by clicking on the item > > "General" in the drop-down list of event-handlers in the IDE edit window, > > and > > adding the "include dosprog.e" right there. Same for the added procedure. > > > > Don, could you explain how your suggestion would function? > > > > Dan Moyer > > > Sorry my last transmission was interupted with personal problems at home. > > As was saying: > > }}} <eucode> > procedure onClickStartButton(integer s, integer e, sequence p) > -- read textdeoc1.txt (using routines already written in dos) > -- read textdeoc2.txt (using routines already written in dos) > -- calculate results (using routines already written in dos) > -- print the results in an EditText or ListView that should be created - > -- in IDE at the time you create the Window and PushButton. > -- I should point out here that I use IDE only to create and place my > -- basic controls; I then pass the controls over to Edita. Then I use > -- Edita to put everything together. I don't try to write programs in IDE > -- although I suppose it could be done. > end procedure > setHandler(startButton,w32HClick,rourine_id("onClickStartButton")) > > Don Cole Thanks to Don Cole, CChris and Dan Moyer for your helpful replies. In the end I setteled for Don's solution as being the simplest, and it worked! I'm slowly getting my head round this IDE set-up, but progress is slow! Thanks again, JayBeeDee