delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/06/17/18:40:37

From: XXguille AT XXiies DOT XXes (Guillermo Rodriguez Garcia)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: DJGPP -> Mingw32
Date: Thu, 17 Jun 1999 14:07:16 GMT
Organization: Telefonica Transmision de Datos
Lines: 28
Message-ID: <376b0092.1988814@noticias.iies.es>
References: <Pine DOT SUN DOT 3 DOT 96 DOT 990616135230 DOT 28378C-100000 AT silver DOT cs DOT umanitoba DOT ca>
NNTP-Posting-Host: iies197.iies.es
Mime-Version: 1.0
X-Newsreader: Forte Agent 1.5/32.451
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019