Re: help with C compiling for Euphoria
- Posted by jimcbrown (admin) Oct 31, 2012
- 1543 views
How do i compile the C code on http://openeuphoria.org/pastey/164.wc so i can call it as a DLL from Euphoria, on a wintel box?
You can't, period. The closest you can get is to make a custom VDD (virtual device driver) and call that directly from a Windoze process, but that's miles away from calling code in a shared library.
It'd be easier to do everything (but the VDD itself, naturally) as an MS-DOS program - for a working example, see http://ww.japheth.de/Download/DOS/IDECHECK.zip (from http://www.masmforum.com/board/index.php?PHPSESSID=8d46cd4ecb1688be429ab49694ec53e6&topic=14801.0;wap2 )
If you really want to access the int13h results from a Windoze process, then the easiest way to do that is to make a simple MS-DOS program that runs the code in the pastey and writes the results to a file, and then have the Windoze program call the MS-DOS program and read the results from the file.