Re: Some Euphoria questions
- Posted by Mike The Spike <mikethespike2000 at HOTMAIL.COM> Aug 18, 2000
- 584 views
>On 18 Aug 2000, at 18:39, Mike The Spike wrote: > ><snip (the email, not MTS)> > > > In these days DLLs are pass=E9. > > They all want OCX's now. > > And Euphoria doesn't even allow to create DLLs! > > And doesn't allow using OCX's! > > If you think DLLs are just insignifanct things, then you don't realis= e >that > > if Windows did not feature DLLs we'd all be working with DOS today! > >Considering there are multitasking DOS kernals now (with the equal of DD= E, >etc), and >a DLL is little more than a fancy windoze tsr, and tsr's are inherently >reuesable, and i >can write tsrs, i don't see the loss. > >Kat Well, as I said, DLLs are old news. I'm talking about the past. If MS did not add DLLs to Windows, there'd be no hardware drivers, no API= s, etc. Pretty useless OS huh? We'd all be stuck with something DOS-like. Or maybe Unix, wich featured shared libraries. DLLs are old and used very frequently, yet Euphoria restricts DLL usage a= nd does not provide DLL creation methods (yet). If you want to sup at all. What? You think you can't create DLLs using an interpretter? Yes you can! A DLL is just a program, that program can be a= n interpretter, wich has source code bound to it, and expose it's source programs' internal functions through a calling routine, such as internal("myfunc",params). I devised this method many years ago, and it can work pretty damned good! I even found a way to generate interpretted .obj files using an interpretter, wich can then be linked into a program! How does this work? Simple. The .obj file is the interpretter, and it defines a character string in i= t's internal code wich is pretty noticable. For example, "INSERT CODE HERE", wich then is located by a program, and byte-code data is placed in the .o= bj file at the location of that string to represent the program to interpret. Basically the initial string is over-written. This can even be done by ha= nd using a Hex Editor. Now you can link the .obj file into any executable fi= le, and it will run the code it finds in that string! See? There's no limits to what *I* can do with an interpretter, It's just crap that RDS did not do these cool things with Euphoria. DLL generation with the interpretter would take about a day to implement = + test, and generating C/C++/ASM object files with the interpretter another day or so. You'd all be writing DLLs and Object files in Interpretted Euphoria years ago! The only problem would be that an object file has a limited amount of program code it can execute, since strings are limited in size. Mike The Spike PS. Wow! I should work for RDS, cos they'd get rich through me! ________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com