Mail Archives: djgpp/1999/06/17/18:40:37
El día Wed, 16 Jun 1999 14:06:46 -0500, Mark Phillips
<umphill5 AT cs DOT umanitoba DOT ca> escribió:
>I wrote some Sound Blaster handling routines in DJGPP and I now need to
>port them to Mingw32. Could anyone tell me what the equivalents of a few
>functions are in Mingw32 or point me in the direction of some information
>that would tell me? More specifically, I am looking for things like
>outport()/inport() in pc.h, __dpmi_allocate_dos_memory(),
>__dpmi_free_dos_memory(), _go32_dpmi_allocate/free_iret_wrapper(),
>_go32_dpmi_get/set_real_mode_interrupt_vector(), from go32.h/dpmi.h
>disable()/enable() in dos.h, _farpoke() from sys/farptr.h, and some
>more... Sorry if this is the wrong group to be posting to, I didn't know
>where else would be better.
mingw32 is a win32 compiler, you just can't port DOS SB handling code
to win32 just by "finding equivalents" for every function in that
code. Windows simply won't let you outport(), inport(), poke to
arbitrary memory locations, or install interrupt handlers (at least
not at hardware level). You have to use whatever the Windows API
offers you. Having said that, I know little or nothing about handling
the SB form Windows. Look at some Win32 API reference.
Regards,
GUILLE
----
Guillermo Rodriguez Garcia
XXguille AT XXiies DOT XXes (ya sabes :-)
- Raw text -