1. (no subject)
- Posted by Sergio Gelli <sergelli at uol.com.br> Nov 08, 2006
- 1106 views
Good day Euforum friends, Please, I must to open an archive .html with the InterNet Explorer using a code .EXW Is it possible? How I make this? thanks, Sérgio.
2. Re: (no subject)
- Posted by Matt Lewis <matthewwalkerlewis at gmail.com> Nov 08, 2006
- 1013 views
- Last edited Nov 09, 2006
Sergio Gelli wrote: > > Good day Euforum friends, > Please, I must to open an archive .html with the > InterNet Explorer using a code .EXW > Is it possible? > How I make this? I'm not sure exactly what you're asking. If you just want to open IE and show the page, then you can use system() or system_exec():
system("c:\\html\\index.htm", 2)
If you want to show a page within your browser, then you can use EuCOM to do this. There is a demo that uses IE as an ActiveX control (browser.exw): http://www.rapideuphoria.com/eucom.zip Matt Lewis
3. Re: (no subject)
- Posted by Sergio Gelli <sergelli at uol.com.br> Nov 08, 2006
- 1029 views
- Last edited Nov 09, 2006
Matt Lewis wrote: > > If you just want to open IE > and show the page, then you can use system() or system_exec(): > }}} <eucode> > system("c:\\html\\index.htm", 2) > </eucode> {{{ > If you want to show a page within your browser, then you can use EuCOM > to do this. There is a demo that uses IE as an ActiveX control > (browser.exw): > > <a > href="http://www.rapideuphoria.com/eucom.zip">http://www.rapideuphoria.com/eucom.zip</a> > > Matt Lewis OK Matt, I go to try to make in this way. very thanks.
4. Re: (no subject)
- Posted by Chris Bensler <bensler at nt.net> Nov 09, 2006
- 1018 views
- Last edited Nov 10, 2006
Sergio Gelli wrote: > > Matt Lewis wrote: > > > > If you just want to open IE > > and show the page, then you can use system() or system_exec(): > > }}} <eucode> > > system("c:\\html\\index.htm", 2) > > </eucode> {{{ > > If you want to show a page within your browser, then you can use EuCOM > > to do this. There is a demo that uses IE as an ActiveX control > > (browser.exw): > > > > <a > > href="http://www.rapideuphoria.com/eucom.zip">http://www.rapideuphoria.com/eucom.zip</a> > > > > Matt Lewis > > > OK Matt, I go to try to make in this way. > > very thanks. If you are using win32lib or another win API, the proper way would be to use ShellExecute(). Chris Bensler ~ The difference between ordinary and extraordinary is that little extra ~ http://empire.iwireweb.com - Empire for Euphoria
5. (no subject)
- Posted by Mark Brown <mabrown at ihug.com.au> May 07, 2007
- 1008 views
- Last edited May 08, 2007
Hello everyone I've just finished wrapping the Horde3D engine for use with euphoria. Horde is a young 3D engine by Nicolas Schulz. It is in active development and shows a lot of promise. I have created a complete package which is basically the official C++ package plus eu wrappers and a port of the "Chicago" C++ demo. The package (3.4mb zip) is available here: http://www.homepages.ihug.com.au/~mabrown/euphoria/horde3d/Horde3D%20SDK%20%5b0.10.0%5d%20-%20Euphoria_01.zip and via the "recent contributions page" The official Horde3D webpage is here: http://www.nextgen-engine.net/ All the best Mark
6. (no subject)
- Posted by Andy <videogamefreak101 at hotmail.com> Jun 09, 2006
- 1092 views
- Last edited Jun 10, 2006
Sounds good, can't wait to try it
7. (no subject)
- Posted by irv mullins <irvm at ellijay.com> Jun 11, 2006
- 1031 views
Alex wrote: > > Reading about the enumeration type (eg in C, Pascal) prompted me to ask if > this is used much in programming, and whether Eu programmers miss it, or > get around it some way, or even wish it was part of the language. Guess I'm > curious to know if I'm "missing out" on something important! Yes, I use ENUMs quite a lot. Makes code simpler and clearer. But Eu won't ever have it, apparently. Irv
8. (no subject)
- Posted by Andy <videogamefreak101 at hotmail.com> Jun 22, 2006
- 1070 views
- Last edited Jun 23, 2006
What is a good graphics libray
9. Re: (no subject)
- Posted by "Greg Haberek" <ghaberek at gmail.com> Jun 23, 2006
- 1071 views
> What is a good graphics libray Allegro, OpenGL, GLUT, Morfit, and SDL are all good libraries. They all have wrappers in the Archive. ~Greg
10. (no subject)
- Posted by Euman <Euman at triad.rr.com> Jun 24, 2006
- 1075 views
Sergio wrote: > > Al Getz wrote: > > > > Sergio Gelli wrote: > > > > > > > > > Hi Al > > > > > > Como está você? Grande prazer em falar contigo! > > > > > > Which the reason to continue using .ex? I am old > > > dinossauro (in extinguishing :)) Really, the reason is that > > > in our business we use a system with old Dbase-4 and there > > > exists more than 3000 programs twirling. Is to hard chang it. > > > We use the Euphoria to help the Dbase in some works, for > > > example: back-ups. > > > > > > Boa sorte para você também! > > > > > > Sérgio Gelli - Brasil > > > > > > Ola outra vez Sergio, > > > > Muito bom, obrigado, e o prazer e meu ingualmente. > > Eu aprecio sempre falar com o alguem de Brasil! > > > > I guess you know your software better than i do, but if you are > > just doing some file detection and copying you could probably > > use the exw form as well as the ex form, unless of course you > > have some DOS specific stuff you need. Maybe you could make > > a list of all the Euphoria functions you call and post them > > here and we can try to determine if you can make the move > > to the exw form in order to make things run a bit smoother. > > Another idea would be to create another exe program you can > > call from your .ex program to get the 'dir' of a given > > directory and store the results in a text file. Your .ex > > file could then read the text file to get the results. > > I used to do this with an old program of mine until converting > > to using Window's API function calls. > > > > > > Ate logo, > > Al > > > > E boa sorte com sua programação Euphoria! > > > > My bumper sticker: "I brake for LED's" > > > > Hi All > > Bom dia! Obrigado pela atenção. > > It will be that the MSDOS goes to finish? > I am sad for knowing that Euphoria will not have resources > to make a simple work same as it makes the function to dir (), > perhaps, with the progress of the Windows platform, more > functions will leave to work. But perhaps, either only > setings of my XP that is incorrect. This is very probable > because our Dbase IV, made in 1993 is working without imperfections. > I will be in these days, trying to migrate for .exw. > > its ideia to create an archive of text with the directory > information, certainly goes to work, because in my project > this is made accurately in this way, one procedure lists all > folders, sub-folders and archives. You it would have an > example of as to make this code? > > Até breve, > > Sérgio Gelli - Brasil Hello, I wrote along time ago a replacement for dir() http://www.rapideuphoria.com/dir232.zip a demo of the work it does can be found here: http://www.rapideuphoria.com/effm2.zip my dir() uses all win-api functionality and allows viewing those infamous hidden directories.. Regards, Euman BTW: Glad to be back!!
11. Re: (no subject)
- Posted by Andy <videogamefreak101 at hotmail.com> Jun 25, 2006
- 1087 views
Thanks for the help, I have all those wrappers, I've been using SDL for a little bit, but maybe I should try Allgero, I will try all of them and see what is best for me
12. (no subject)
- Posted by C Bouzy <EUCoder at hotmail.com> Aug 12, 2006
- 1069 views
- Last edited Aug 13, 2006
Hello Bernie, Thank you for the info, but that is not exactly what I need. Have you ever clicked on a hyperlink on a website that was linked to a certain file type, and instead of your browser instructing you to download/save file, the file just downloads and opens automatically? This is what I want to do. I already know how to create a new file type..etc..etc, but I do not know how to force that file type to open automatically when clicked on via the browser. A good example of this would be installing Winamp and visiting Shoutcast.com and clicking one of the play icons. The file opens automatically without prompting the user to download/save file. ----C Bouzy ----If you continue to do what you have always done, you will get what you have always gotten.----
13. (no subject)
- Posted by Elliott Sales de Andrade <quantum_analyst at hotmail.com> Dec 10, 2005
- 1060 views
~[ WingZone ]~ http://wingzone.tripod.com/
14. (no subject)
- Posted by Bernie Ryan <xotron at bluefrog.com> Dec 23, 2005
- 1037 views
<img src=http://www.ListFilter.com/happy.gif>
Bernie My files in archive: w32engin.ew mixedlib.e eu_engin.e win32eru.exw Can be downloaded here: http://www.rapideuphoria.com/cgi-bin/asearch.exu?dos=on&win=on&lnx=on&gen=on&keywords=bernie+ryan
15. (no subject)
- Posted by "Bonn Ortloff (\"LEVIATHAN\")" <ortlofffamily at WORLDNET.ATT.NET> Jun 02, 1998
- 1016 views
- Last edited Jun 03, 1998
Hi! I want to do a MS-DOS - Unix .e, when the system() is called out, the .e file intercepts it and directs it to the unix shell, instead of sending it to a "command line"... can Euphoria already do this? if not, how do I start the part of intercepting the command? (I think i'll need a whole separate procedure...) thanx! "LEVIATHAN"
16. (no subject)
- Posted by Alan Oxley <fizzpop at icon.co.za> Dec 14, 2004
- 1006 views
Irv said: I'm surprised you didn't see the problems with this idea: 1. It prevents Rob from ever fixing even the smallest bug in the "official" release - which, as we know, tends to be the *only* release for a year or two. Very puzzling to get a message saying you need "2.5" when you *are* running 2.5, but the library which is reporting the error was written for the previous (un-bug-fixed) crc. 2. How do we ever guess the crc's of versions 2.6, 2.7, .... etc. so that our programs can also run on those? Crystal balls don't work, you know. My reply: You said it yourself - if the official is the only release, then the CRC won't change? But consider if the convention of "2.5.01" is used, or even (possibly less usable) return a string "Euphoria vx.x 12th December 2004". Whats the problem with generating and storing a CRC for every release? There are not THAT many! Why would you want to test for future versions, if they don't exist..? The reason for testing is to ensure your code is compatible with a feature that does not (yet) exist? Sorry, I don't get this. Also, there is no reasons why two or more CRC's cannot return the same EU version like "2.5" if what the CRC's identify are known bugfixes from Rob. I'd still like Rob to give us a proper function though, as first prize. My suggestion is mostly aimed at testing for earlier releases without having to change them. Regards Alan
17. Re: (no subject)
- Posted by Jason Gade <jaygade at yahoo.com> Dec 14, 2004
- 983 views
Alan Oxley wrote: > My reply: > You said it yourself - if the official is the only release, then the CRC > won't change? But consider if the convention of "2.5.01" is used, > or even (possibly less usable) return a string "Euphoria vx.x 12th December > 2004". > > Whats the problem with generating and storing a CRC for every release? There > are not THAT many! Why would you want to test for future versions, if > they don't exist..? The reason for testing is to ensure your code is > compatible with a feature that does not (yet) exist? Sorry, I don't get this. > Also, there is no reasons why two or more CRC's cannot return the same > EU version like "2.5" if what the CRC's identify are known bugfixes from Rob. > > I'd still like Rob to give us a proper function though, as first prize. > My suggestion is mostly aimed at testing for earlier releases without > having to change them. > > Regards > Alan > The problem is say you use a feature which is included in versions 2.8 or later. You want to check to make sure you have *at least* version 2.8. You don't care if the user has 2.9, 3.1 or whatever. Since you can't tell if the CRC is going to be greater or less than the CRC for 2.8, you can only check for 2.8 *exactly*. Euphoria is small enough, I think, to include the required interpreter and files to users. Also, binding or translating would work. For open source, you would just distribute a source tree like any other (executable) project would. The real problem, of course, comes in distributing libraries that you don't want to work only for the lowest common denominator. Libraries are the code that need to check versions somewhat reliably so they can give a meaningful message to the user of the library. (Of course, if the library user would read the docs...) ===================================== Too many freaks, not enough circuses. j.
18. Re: (no subject)
- Posted by Jason Gade <jaygade at yahoo.com> Dec 14, 2004
- 981 views
Of course none of this addresses Juergen's original problem which is that an earlier version of Euphoria will crash with a compile-time error and an unhelpful message if you try to run a program that includes features implemented in later versions of the interpreter. ===================================== Too many freaks, not enough circuses. j.
19. (no subject)
- Posted by Jason Gade <jaygade at yahoo.com> Dec 23, 2004
- 974 views
I'll be gone until December 30th. Happy Holidays to all! I wish everyone the best. I'm sure that I will read all of the old messages, though. Kat, I hope everything works out well for you. Please send a newspaper link if there is one. ===================================== Too many freaks, not enough circuses. j.
20. (no subject)
- Posted by Derek Parnell <ddparnell at bigpond.com> Dec 23, 2004
- 989 views
- Last edited Dec 24, 2004
Kondor Attila wrote: > > Greg Haberek <ghaberek at gmail.com> 2004.12.22. 14:56:42 -5h-kor =EDrta: > > > > > > seq={{52,49,53},"415"} > > > > > "415" <-- I'd like hier to see: {52,49,53} > > > "415" > > > > Unfortunately, {52,49,53} and "415" are the same internally (to the > > interpreter). You have to determine when a sequence is a string and > > when it is plain data. You'd have to do something like this: > > > > }}} <eucode> > > sequence a > >=20 > > a = {52,49,53} > >=20 > > print(1, a) -- outputs {52,49,53} > > printf(1, "%s", {a}) -- outputs "415" > >=20 > > </eucode> {{{ > > Thanks, but I know this. > > When I reed for example an edb, I do'nt know so that=20 > {52,49,53} is data sequence or string. It is not equal. > > I think it would be good, if were in euphoria string type (not user type!)= > . This is an age old problem, and is not restricted to Euphoria. Ultimately, all program data is stored as a sets of bits. The meaning of the bit-sets is determined by the programmer as it is never inherent in the data itself - its just ones and zeros. If you have a database field which is a sequence, AND you need to make sure that every program that ever reads that sequence knows how to interpret its bits, then you will also need to store the field's meta-data. Most database systems do this for you in a schema. The RDS database system is not quite that complex, and you must provide your own schema if you need one. Of course, that begs the question about how can an arbitary program understand the schema layout (meaning). The answer for that probably lies in the use of international standards that, if followed, allow this functionality. For example, there is a reasonble XML data description language developed that could be used to describe the schema and the database records too. So in short, it is meaningless to complain that Euphoria cannot distinguish between {65,66,67} and "ABC" because the meaning of these 96 bits is defined by the programmer each and every time they are used. In the definition of Euphoria, RDS has explictly decided to make data interpretation flexible, at the cost of making the programmer 'work' a bit harder. A lot of languages have the built-in tools for programmers to force a specific interpretation of bits, but in Euphoria you have to add this yourself (if its needed). That is just a statement of fact, and not a judgement, criticism or praise. So, if your data needs a consistent, specific, bit interpretation, you need to add this layer of information to your data. And yes, that is not always an easy task. -- Derek Parnell Melbourne, Australia
21. (no subject)
- Posted by Mannequin <mannslists at invigorated.org> Aug 06, 2005
- 998 views
Along with my last question (repost below), I am in need of some examples of how to use the Windows clipboard with wxEuphoria. (I'll deal with how to do it in Linux later.) I've done some searching through the EUforum, and have come across some posts, but I'm not too sure that they are still relevant considering the changes that have been made since wxEuphoria 0.5.0: http://www.listfilter.com/cgi-bin/esearch.exu?fromMonth=1&fromYear=A&toMonth=8&toYear=A&postedBy=&keywords=wxeuphoria+copy+clipboard Maybe once I get a handle on all of these different things, I'll do some demos, and maybe a short tutorial or something... ==> START REPOST <== > As a learning experience, I'm working on a text editor that's loosely based on > Windows' > Notepad using wxEuphoria. I was wondering what would be the best method of > implementing > a word-wrap toggle option. > > Here's what I have used to create the text area: > > text_area = create (wxTextCtrl, {panel, -1, "", -1, -1, -1, -1, wxTE_MULTILINE > + wxTE_DONTWRAP}), > > Using that, word wrap is automatically turned OFF when the program is started. > Is there > an easy way to turn it on via wxEuphoria when the user wants it on, or am I > going to > have to find a way to do it myself? ==> END REPOST <== Thanks for any help you guys can give. I really want to get a grasp on this stuff so I can get in to projects that might actually benefit the community. :) -Mannequin. My Euphoria works: wxPetals - http://www.rapideuphoria.com/wxpetals.zip
22. Re: (no subject)
- Posted by Matt Lewis <matthewwalkerlewis at gmail.com> Aug 08, 2005
- 996 views
Mannequin wrote: > > Along with my last question (repost below), I am in need of some examples of > how to > use the Windows clipboard with wxEuphoria. (I'll deal with how to do it in > Linux later.) > I've done some searching through the EUforum, and have come across some posts, > but > I'm not too sure that they are still relevant considering the changes that > have been > made since wxEuphoria 0.5.0: > You should be able to use set_clip_text() and get_clip_text() under windows. The documentation doesn't really say anything useful, but you basically pass a string to set_clip_text() and a string is returned from get_clip_text(). > ==> START REPOST <== > > As a learning experience, I'm working on a text editor that's loosely based > > on Windows' > > Notepad using wxEuphoria. I was wondering what would be the best method of > > implementing > > a word-wrap toggle option. > > > > Here's what I have used to create the text area: > > > > text_area = create (wxTextCtrl, {panel, -1, "", -1, -1, -1, -1, > > wxTE_MULTILINE + wxTE_DONTWRAP}), > > > > Using that, word wrap is automatically turned OFF when the program is > > started. Is there > > an easy way to turn it on via wxEuphoria when the user wants it on, or am I > > going to > > have to find a way to do it myself? > ==> END REPOST <== I don't think there is a way to do this after the control has been created. You can try wxTextCtrl::SetWindowStyleFlag, but it doesn't work for me. I suspect that this is one of those styles that can't be changed after the control has been created. This limitation is probably imposed by windows. Matt Lewis
23. (no subject)
- Posted by Al Getz <Xaxo at a?l.com> Jul 01, 2007
- 1046 views
Take care, Al E boa sorte com sua programacao Euphoria! My bumper sticker: "I brake for LED's" From "Black Knight": "I can live with losing the good fight, but i can not live without fighting it". "Well on second thought, maybe not."
24. (no subject)
- Posted by Michael Raley <thinkways at yahoo.com> May 18, 2004
- 1006 views
Pete Lomax wrote: > > If you think that's funny, you are not, and never will be, a proper > geek. In fact, it is far worse that you could not even manage to > compose some witty message to us other die hard Reverse > Polish Notation fans (note the poper capitalisation) that we, and only > we would understand. Or maybe that failure makes you a geek ) > Well somebody got off the wrong side of the stack this morning. My apologies. I've spent too much time in the puns tribe, lately. It's been years since I had to cludge through classes with my HP calculator and I never claimed to be in the proper geek bracket, and have long since sworn off black socks. Oh wait, brackets bad. Oompf.
25. Re: (no subject)
- Posted by Pete Lomax <petelomax at blueyonder.co.uk> May 18, 2004
- 1021 views
On Tue, 18 May 2004 14:49:23 -0700, Michael Raley <guest at RapidEuphoria.com> wrote: > > >posted by: Michael Raley <thinkways at yahoo.com> > >Pete Lomax wrote: >> >> If you think that's funny, you are not, and never will be, a proper >> geek. In fact, it is far worse that you could not even manage to >> compose some witty message to us other die hard Reverse >> Polish Notation fans (note the poper capitalisation) that we, and only >> we would understand. Or maybe that failure makes you a geek ) >> >Well somebody got off the wrong side of the stack this morning. >My apologies. I've spent too much time in the puns tribe, lately. >It's been years since I had to cludge through classes >with my HP calculator and I never claimed to be in the proper geek bracket, >and have long since sworn off black socks. Oh wait, brackets bad. Oompf. > Oh, behave... Don't bother trying to take me too seriously... True geeks wear black socks anyway, since they need washing less often
26. (no subject)
- Posted by herb <herb at sunbeach.net> Jul 06, 2005
- 996 views
- Last edited Jul 07, 2005
!!I am very new to programming and new to euphoria also. I have spent lots of time trying to correct this problem by deleting and reinstalling Euphoria,I hope I can get some help. ed don't change the code color colour, all type (code words and comments) remain black in color After pressing the 'Esq' key I don't see the 'e' for executing the program either when I save the program. the editor save it as a mere text file. If I change the extention to '.ex' and then try ro run it in .ex I get a message telling me that it is not a valid win32 file, or that it "can't open" the specified file. I even tried to run it in 'exw' but wit the same result. HELP!!
27. Re: (no subject)
- Posted by ChrisBurch2 <crylex at freeuk.co.uk> Jul 07, 2005
- 1048 views
go here http://members.aol.com/chriscrylex/euphoria.htm http://uboard.proboards32.com/ Chris
28. Re: (no subject)
- Posted by Patrick Barnes <mrtrick at gmail.com> Jul 07, 2005
- 1029 views
You seem to be having trouble with the Euphoria built-in editor... I would recommend giving up on it. While it suffices for some usage (and ships with every edition of euphoria) it lacks a LOT of useful features - windows integration, proper copy/paste functionality, STANDARD short-cut keys, print functionality, etc. There are many good editors out there... some written for euphoria (search for "editor" in the euphoria archives... and some general-purpose coding editors that have support for a euphoria syntax colouring file (perhaps some of the other Euphorians can recommend one). On 7/7/05, herb <guest at rapideuphoria.com> wrote: > > > posted by: herb <herb at sunbeach.net> > > !!I am very new to programming and new to euphoria also. > I have spent lots of time trying to correct this problem by deleting > and reinstalling Euphoria,I hope I can get some help. > ed don't change the code color colour, all type (code words and comments= ) > remain black in color After pressing the 'Esq' key I don't see the 'e' > for executing the program either when I save the program. the editor > save it as a mere text file. If I change the extention to '.ex' and then > try ro run it in .ex I get a message telling me that it is not a valid wi= n32 file, > or that it "can't open" the specified file. I even tried to run it in 'ex= w' > but wit the same result. > HELP!! > > > > > -- MrTrick ----------
29. (no subject)
- Posted by Jan & Gerald Harvey <vk2bnh at IX.NET.AU> Nov 19, 1999
- 1030 views
<!doctype html public "-//w3c//dtd html 4.0 transitional//en"> <html> unsubscribe</html>
30. (no subject)
- Posted by gunnar <gunnar_secret at hotmail.com> Oct 20, 2004
- 995 views
Does someone know a easy way to delay programs. A procedure like that doesen't exist in the euphoria-include files. I want a procedure that dosen't care about how fast the computer is. Regards, gunnar
31. Re: (no subject)
- Posted by "Kat" <gertie at visionsix.com> Oct 20, 2004
- 999 views
On 20 Oct 2004, at 10:26, gunnar wrote: > > > posted by: gunnar <gunnar_secret at hotmail.com> > > Does someone know a easy way to delay programs. > A procedure like that doesen't exist in the euphoria-include files. > I want a procedure that dosen't care about how fast > the computer is. sleep() Kat
32. Re: (no subject)
- Posted by gunnar( beginner ) <gunnar_secret at hotmail.com> Oct 20, 2004
- 1015 views
Kat wrote: > > On 20 Oct 2004, at 10:26, gunnar wrote: > > > > > posted by: gunnar <gunnar_secret at hotmail.com> > > > > Does someone know a easy way to delay programs. > > A procedure like that doesen't exist in the euphoria-include files. > > I want a procedure that dosen't care about how fast > > the computer is. > > sleep() > > Kat > > Ohh, I forget to say, sleep() dosen't work, sleep() can only delay whole seconds... Regards, gunnar
33. Re: (no subject)
- Posted by "Kat" <gertie at visionsix.com> Oct 20, 2004
- 1028 views
On 20 Oct 2004, at 10:52, gunnar( beginner ) wrote: > > > posted by: gunnar( beginner ) <gunnar_secret at hotmail.com> > > Kat wrote: > > > > On 20 Oct 2004, at 10:26, gunnar wrote: > > > > > > > > posted by: gunnar <gunnar_secret at hotmail.com> > > > > > > Does someone know a easy way to delay programs. > > > A procedure like that doesen't exist in the euphoria-include files. > > > I want a procedure that dosen't care about how fast > > > the computer is. > > > > sleep() > > > > Kat > > > > > Ohh, I forget to say, > sleep() dosen't work, > sleep() can only delay whole seconds... We know. And RDS knows, trust me, we have been over it before. And the "official" version doesn't support sleep(0), just comment out those lines that test for zero. As for fractional seconds, i don't know. I am sure there's some windows gurus that are not reading this thread because it has [no subject], perhaps if you gave it a subject, like maybe "fractional sec sleep()", they'd jump in and offer something. Kat
34. Re: (no subject)
- Posted by OtterDad <otter at full-moon.com> Oct 20, 2004
- 995 views
- Last edited Oct 21, 2004
for a Sleep function that accepts partial seconds, try this:
constant KERNEL32 = open_dll("kernel32") if KERNEL32 = 0 then puts(1,"Couldn't open kernel32.dll.\n") abort(1) end if constant pSleep = define_c_func(KERNEL32,"Sleep",{C_LONG},C_LONG) -- REMEMBER Sleep time is in micro-seconds global function Sleep(integer sleeptime) return c_func(pSleep,{sleeptime}) end function -- pause 2 and a half seconds junk = Sleep(2.5 * 1000)
Yours, OtterDad Don't sweat it -- it's not real life. It's only ones and zeroes. Gene Spafford
35. (no subject)
- Posted by "Charles D. Brock" <davep at NAUTICOM.NET> Aug 13, 1996
- 1038 views
-- This include file extends the math functions available with the following : -- PI this is the constant 3.1415926 -- e this is also a math constant -- deg convert radian math mode to degrees mode -- rad_deg convert radians to degrees -- abs produces the absolute values of a number -- mod the modulus function -- exp produces the expodential of a number -- sinh hyperbolic sin -- cosh hyperbolic cos -- tanh hyperbolic tan -- also included are a collection of -- formulas for perimeter, area, volume, and surface areas -- the file 'examp.ex ' is a test program which uses this include file -- ----------------------------------------------------------------------------- global constant pi = 3.141592654 global constant e = 2.718281828 global function deg(atom x) --syntax sin(deg(x)) x = x*.0174533 return x end function global function rad_deg(atom x) x = x * 57.29578 return x end function global function abs(atom x) if x<1 then x = floor(-x) else x = floor(x) end if return x end function global function mod(atom x,atom y) x = abs(x -y * abs(x/y)) return x end function global function exp(atom x) x = power (e,x) return x end function global function sinh(atom x) x = .5 * (exp(x)-exp(-x)) return x end function global function cosh(atom x) x = .5 * (exp(x)+exp(-x)) return x end function global function tanh(atom x) x = 1-2*exp(-x)/(exp(x)+exp(-x)) return x end function -- formulas for perimeter, area, and volumes global function area_triangle(atom base,atom height) atom area area = .5 * base * height return area end function global function area_rectange(atom len,atom height) atom area area = len * height return area end function global function area_parallel(atom base, atom height) atom area area = base * height return area end function global function area_square( atom side) atom area area = side * side return area end function global function area_trap(atom height, atom base1,atom base2) atom area area = .5*height*(base1 + base2) return area end function global function area_circle(atom radius) atom area area = pi * radius * radius return area end function global function surface_area_sphere(atom radius) atom surface_area surface_area = 4 * pi * radius * radius return surface_area end function global function volume_sphere(atom radius) atom volume volume = (4 / 3) * pi * (power (radius,3)) return volume end function global function surface_area_right_circular_cone(atom radius,atom height) atom surface_area surface_area = pi * (radius * radius) + (pi * radius * power (((radius * radius) + (height * height)),.5)) return surface_area end function global function volume_right_circular_cone(atom radius,atom height) atom volume volume = (1/3) * pi * radius * radius * height return volume end function global function volume_right_circular_cylinder(atom radius, atom height) atom volume volume = pi * (radius * radius) * height return volume end function global function surface_area_right_circular_cylinder(atom radius, atom height) atom surface_area surface_area = 2 * pi * (radius * radius) + (2 * pi * radius * height) return surface_area end function global function surface_area_cube(atom side) atom surface_area surface_area = 6 * (side * side) return surface_area end function global function volume_cube(atom side) atom volume volume = power(side,3) return volume end function global function surface_area_rect_solid(atom len, atom weight, atom height) atom surface_area surface_area = 2 * weight * height + 2 * height * len + 2 * weight * len return surface_area end function global function volume_rect_solid(atom len, atom weight, atom height) atom volume volume = len * weight * height return volume end function
36. (no subject)
- Posted by "Charles D. Brock" <davep at NAUTICOM.NET> Aug 13, 1996
- 1086 views
--with trace --trace(1) include math.e printf(1,"The value of PI is %f \n",pi) printf(1,"The value of 'e' is %f \n",e) printf(1,"The sin of 1.4 in radians is %f \n", sin(1.4)) printf(1,"The sin of 1.4 radians in degrees is %f \n", sin (deg(1.4))) printf(1,"1.4 radians = %f degrees \n", rad_deg(1.4)) printf (1,"The abs of -13.7 is %d \n", abs(-13.7)) ? exp(3) ? exp(20) ? exp(100) ? area_trap(3,3,3) ? surface_area_sphere(2.5) ? surface_area_right_circular_cone(2,3) ? surface_area_right_circular_cylinder(2,3) ? surface_area_cube(3.7) ? surface_area_rect_solid(1,2,3) ? volume_rect_solid(1,2,3) ? volume_sphere(4) ? volume_cube(3) ? volume_right_circular_cone(4,12.34) ? volume_right_circular_cylinder(2,3) ? sinh(1) ? cosh(1) ? tanh(.5) ? mod(13,5)
37. (no subject)
- Posted by ThatNerd at AOL.COM Sep 29, 1998
- 1016 views
Hello everybody!! I've been planning out this big project where I can interface my computer with a basic electronic circut, like the thermometer program, but I can't build anything until I know how much voltage come out of the ports(LPT, and COM). Any one with information? I also wanted to know where the + end of the voltage is(or - if that is the way it goes. I'm not really sure yet.) I know something about there only being one input, but through testing with the Euphoria LPT monitor, two pins are always on, and there are a whole bunch of ground pins. Can anyone help?
38. Re: (no subject)
- Posted by James Begley <jizim at GEOCITIES.COM> Sep 29, 1998
- 976 views
>Can anyone help? Maybe. I used to do this kind of stuff with old C64's. First, you would probably want to find a diagram of a COM port on the internet. Try Yahoo!. Theoretically,there will be a pin that is +5V. That's what I'm guessing. The GND pin is sort of the negative terminal to everything. Again, that's theoretical. Then, there are the pins in between all those. A few of those are used for in, a few for out, a few there for effect. Look it up, I probably forgot something important. You should also have a multitester. James Begley
39. (no subject)
- Posted by Tony Steward <tony at locksdownunder.com> Jul 29, 2002
- 999 views
--part1_28.2a3d1cb1.2a76697b_boundary Hi Derek, This has happened with other win32lib progs. Judiths IDE for one (although I havn't noticed this prob with ide for a while). It only happens when 1st tying to open the program i.e I have exw files associated with exw.exe so I can double click my exw file to execute and then I get the error described. I do not destroy and re-create anything. Its not a big problem as its happens about 1 in every 10 or 15 executions. I reported it mainly for your benefit in making WIN32LIB as bullet proof as possible. Thanks Tony Derek Wrote: Hi Tony, does this only happen with one specific program or can it happen with any win32lib program? This error indicates that a Windows handle (hWnd) which had been associated with a given win32lib control, is now associated with a different control. This is not supposed to happen. When win32lib creates a control, it gets asks Windows for a hWnd for it then sets the GWL_USERDATA for that handle to the id.. VOID = w32Func( xSetWindowLong, { hWnd, GWL_USERDATA, id } ) This stays in effect until the control is destroyed. Both the ID and the hWnd can then be reused. But what this error seems to be saying is that two controls are sharing the same hWnd - which I would have thought is a no-no. Are you destroying and recreating controls in your program? ----------- Derek. --part1_28.2a3d1cb1.2a76697b_boundary Content-Type: text/html; charset="US-ASCII" Content-Transfer-Encoding: 7bit <HTML><FONT FACE=arial,helvetica><FONT SIZE=1 FAMILY="SANSSERIF" FACE="Arial" LANG="0">Hi Derek,<BR> This has happened with other win32lib progs. Judiths IDE for one (although I havn't noticed this prob with ide for a while). It only happens when 1st tying to open the program i.e I have exw files associated with exw.exe so I can double click my exw file to execute and then I get the error described. <BR> <BR> I do not destroy and re-create anything.<BR> <BR> Its not a big problem as its happens about 1 in every 10 or 15 executions. I reported it mainly for your benefit in making WIN32LIB as bullet proof as possible.<BR> <BR> Thanks<BR> Tony<BR> <BR> Derek Wrote:<BR> Hi Tony,<BR> does this only happen with one specific program or can it happen with any<BR> win32lib program? <BR> <BR> This error indicates that a Windows handle (hWnd) which had been associated<BR> with a given win32lib control, is now associated with a different control.<BR> This is not supposed to happen. When win32lib creates a control, it gets<BR> asks Windows for a hWnd for it then sets the GWL_USERDATA for that handle to<BR> the id..<BR> <BR> VOID = w32Func( xSetWindowLong, { hWnd, GWL_USERDATA, id } )<BR> <BR> This stays in effect until the control is destroyed. Both the ID and the<BR> hWnd can then be reused. But what this error seems to be saying is that two<BR> controls are sharing the same hWnd - which I would have thought is a no-no.<BR> <BR> Are you destroying and recreating controls in your program? <BR> <BR> -----------<BR> Derek.<BR> <BR> </FONT><FONT COLOR="#000000" style="BACKGROUND-COLOR: #ffffff" SIZE=3 FAMILY="SANSSERIF" FACE="Arial" LANG="0"> <BR> <BR> --part1_28.2a3d1cb1.2a76697b_boundary--
43. (no subject)
- Posted by Hayden McKay <hmck1 at dodo.com.au> Jul 05, 2006
- 992 views
there is also a freeware program called "DVD Shrink 3.2" the will analize a ~9Gb decypted ISO or DVD files and re-encode the video to a standard 4.3 ISO wich you can burn useing any 3rd party burning program. You'll probably have to search google for it.
44. (no subject)
- Posted by Sergio Gelli <sergelli at uol.com.br> Jul 11, 2006
- 985 views
Hi Again, Thanks a lot to Hayden, Pete and Steve for the answers about a compress file, but I need anything like gzip.exe into a .EXW code line and working with long names files. I am having problems with long names of archives, and also those names, of archives and directories, that have spaces. These archives are simply inaccessible. I looked old answers on this subject in the Euforum but I did not understand nothing. How I can make to use an archive, with one path equal to the this: c:\Very Long Name\longNameNoGoodThing.exw I try use: C:\VeryLo~1\LongNa~1.exw But don't work, the file is inaccessible with .EXW files, in both ways,long name or 8.3 names ! I find this very strange, any simple program, as the NotePad, does not have problems with these types of path. Perhaps I am making some wrong thing. Please sorry about this, however how I work with these long names? Many thanks.
45. Re: (no subject)
- Posted by Al Getz <Xaxo at aol.com> Jul 11, 2006
- 1010 views
Sergio Gelli wrote: > > Hi Again, > > Thanks a lot to Hayden, Pete and Steve for the answers > about a compress file, but I need anything like gzip.exe > into a .EXW code line and working with long names files. > > I am having problems with long names of archives, and also > those names, of archives and directories, that have spaces. > > These archives are simply inaccessible. I looked old answers > on this subject in the Euforum but I did not understand nothing. > > How I can make to use an archive, with one path equal to the this: > > c:\Very Long Name\longNameNoGoodThing.exw > > I try use: > > C:\VeryLo~1\LongNa~1.exw > > But don't work, the file is inaccessible with .EXW files, in > both ways,long name or 8.3 names ! > > I find this very strange, any simple program, as the > NotePad, does not have problems with these types of path. > Perhaps I am making some wrong thing. > Please sorry about this, however how I work with these long names? > > Many thanks. Ola Sergio, Did you try putting quotes around the name? "C:\Very Long Name With Spaces\My File.exw" or path="C:\Very Long Name With Spaces\My File.exw" path=34&path&34 Take care, Al E boa sorte com sua programacao Euphoria! My bumper sticker: "I brake for LED's" From "Black Knight": "I can live with losing the good fight, but i can not live without fighting it". "Well on second thought, maybe not."
46. (no subject)
- Posted by Matt Lewis <matthewwalkerlewis at gmail.com> Mar 26, 2007
- 983 views
Chris wrote: > > Hi > > Matt > > Haven't yet been able to compile a 32 bit version of wxwidgets on my 64 bit > system - my next step is to try to compile it on a 32 bit system while > resolving > the almost certain dependency deficiencies. > > However, I discovered a new command (on the wxwidgets site) > > ldd [file] > > it lists all the libraries required by an application. > > ldd wxeu.so > > returns a list of all the libraries reuired by this application, all present > > ldd libwxeu.so > > returns a list of the required libraries, of which none of the gtk2 libs can > it find. Strangely, these libraries are in /usr/local/lib. Are these in the form of libwx_gtk2*? Because those are the wxWidgets libraries. I've got my ldd output below (on Ubuntu Edgy). There were only 3 actual gtk/gdk libraries linked. > Curiouser and curiouser. The gtk2 libs can be found, because, as I said > before, > the examples in the gtk2 source package work. > > My feeling is that libwxeu.so will work with the 64 bit gtk2 binaries, it just > needs a little encouragement. Good luck. $ ldd /usr/local/lib/libwxeu.so linux-gate.so.1 => (0xffffe000) libwx_gtk2_aui-2.8.so.0 => /usr/local/lib/libwx_gtk2_aui-2.8.so.0 (0xb7eb7000) libwx_gtk2_xrc-2.8.so.0 => /usr/local/lib/libwx_gtk2_xrc-2.8.so.0 (0xb7e2c000) libwx_gtk2_qa-2.8.so.0 => /usr/local/lib/libwx_gtk2_qa-2.8.so.0 (0xb7e0d000) libwx_gtk2_html-2.8.so.0 => /usr/local/lib/libwx_gtk2_html-2.8.so.0 (0xb7d76000) libwx_gtk2_adv-2.8.so.0 => /usr/local/lib/libwx_gtk2_adv-2.8.so.0 (0xb7cbb000) libwx_gtk2_core-2.8.so.0 => /usr/local/lib/libwx_gtk2_core-2.8.so.0 (0xb792d000) libwx_base_xml-2.8.so.0 => /usr/local/lib/libwx_base_xml-2.8.so.0 (0xb7923000) libwx_base_net-2.8.so.0 => /usr/local/lib/libwx_base_net-2.8.so.0 (0xb78f7000) libwx_base-2.8.so.0 => /usr/local/lib/libwx_base-2.8.so.0 (0xb77d9000) libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb76fa000) libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0xb76d4000) libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb76c9000) libpthread.so.0 => /lib/tls/i686/cmov/libpthread.so.0 (0xb76b6000) libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7582000) libz.so.1 => /usr/lib/libz.so.1 (0xb756d000) libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0xb7569000) libgtk-x11-2.0.so.0 => /usr/lib/libgtk-x11-2.0.so.0 (0xb7219000) libgdk-x11-2.0.so.0 => /usr/lib/libgdk-x11-2.0.so.0 (0xb7195000) libatk-1.0.so.0 => /usr/lib/libatk-1.0.so.0 (0xb717b000) libgdk_pixbuf-2.0.so.0 => /usr/lib/libgdk_pixbuf-2.0.so.0 (0xb7165000) libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0xb7135000) libXext.so.6 => /usr/lib/libXext.so.6 (0xb7128000) libXrender.so.1 => /usr/lib/libXrender.so.1 (0xb7120000) libXinerama.so.1 => /usr/lib/libXinerama.so.1 (0xb711d000) libXi.so.6 => /usr/lib/libXi.so.6 (0xb7115000) libXrandr.so.2 => /usr/lib/libXrandr.so.2 (0xb7112000) libXcursor.so.1 => /usr/lib/libXcursor.so.1 (0xb7108000) libXfixes.so.3 => /usr/lib/libXfixes.so.3 (0xb7103000) libpango-1.0.so.0 => /usr/lib/libpango-1.0.so.0 (0xb70c9000) libX11.so.6 => /usr/lib/libX11.so.6 (0xb7000000) libgobject-2.0.so.0 => /usr/lib/libgobject-2.0.so.0 (0xb6fc6000) libgmodule-2.0.so.0 => /usr/lib/libgmodule-2.0.so.0 (0xb6fc2000) libgthread-2.0.so.0 => /usr/lib/libgthread-2.0.so.0 (0xb6fbc000) libglib-2.0.so.0 => /usr/lib/libglib-2.0.so.0 (0xb6f2a000) libSM.so.6 => /usr/lib/libSM.so.6 (0xb6f21000) libpng12.so.0 => /usr/lib/libpng12.so.0 (0xb6efd000) libexpat.so.1 => /usr/lib/libexpat.so.1 (0xb6ede000) /lib/ld-linux.so.2 (0x80000000) libpangocairo-1.0.so.0 => /usr/lib/libpangocairo-1.0.so.0 (0xb6ed6000) libcairo.so.2 => /usr/lib/libcairo.so.2 (0xb6e74000) libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0xb6e0a000) libXau.so.6 => /usr/lib/libXau.so.6 (0xb6e06000) libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0xb6e01000) librt.so.1 => /lib/tls/i686/cmov/librt.so.1 (0xb6df8000) libICE.so.6 => /usr/lib/libICE.so.6 (0xb6de0000) libpangoft2-1.0.so.0 => /usr/lib/libpangoft2-1.0.so.0 (0xb6db5000)
47. (no subject)
- Posted by C Bouzy <CBouzy at Egisca.com> Mar 28, 2007
- 1007 views
Hello Robert, Thanks for posting the code. I have been working on getting Bass and TDLL to work, and I have had some success. There might be hope after all.... ~C Bouzy "If you do what you have always done, you will get what you always got."
48. (no subject)
- Posted by duke normandin <dnormandin at bsdrocksperlrolls.com> Mar 31, 2007
- 993 views
Matt wrote: > > > I've managed to get wxEuphoria working on FreeBSD 6.2 (note that the > stock euphoria interpreter doesn't work out of the box* on FreeBSD 6.2). > > Not sure how many people out there are using FreeBSD, but you can now use > wxEuphoria there. Check out the source from svn for now. I'll do a real > release when I put up the betas for v0.10.0. Take a look at readme.txt, > which has build instructions for all 3 platforms. > > Matt I'm a FreeBSD user from way back ;) Thanks for your hard work! L8r... -- duke SW of Calgary - near the Rockies http://www.rootshell.be/~perlster/euphoria/
49. (no subject)
- Posted by Matt Lewis <matthewwalkerlewis at gmail.com> Dec 10, 2006
- 993 views
- Last edited Dec 11, 2006
Allen wrote: > > I am working on a windows program that displays results of a calculation in > > a label an some of the results are to large or to small to display the entire > string in the label. > > Can anyone help me with a routine that will convert the results into > scientific > notation before diplaying them (ie. 0.00000000000001 = 1.0 x 10<sup>-14</sup>. Try using
printf(1,"%e", 0.00000000000001)
Matt