Re: help with C compiling for Euphoria
- Posted by CoJaBo2 Oct 30, 2012
- 1495 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?
useless
That's for DOS; you simply cannot make real-mode function calls from protected-mode Windows.
You would have to use the Windows API; MSDN ought to have it listed. (If you can find the relevant functions, you should be able to call them from Eu using c_func, etc, you wouldn't need a DLL)
I assume this is for the disk access thread? A bigger problem may be that you cannot (as far as I'm aware) tell Windows to ignore a partition that it recognizes (leading to corruption), and ones that it does not (e.g., ext3) it likes to pester you to format for no apparent reason..
(If you need direct disk access, btw, note also that its downright trivial on Linux)