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: NNTP-Posting-Host: iies197.iies.es Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit 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 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 :-)