Mail Archives: djgpp/1998/09/08/19:16:54
Nick Bull wrote:
> I think this is where the problem is. I've removed the "char far *buf" from
> the arguments and the "far" from the structure, but I think I'm running into
> problems here. The function should call an interrupt in the MSCDEX driver
> that fills buf with data. All of my other interrupt calls are working OK,
> but they don't fill any memory with information. Can anyone help ? What am
> I doing wrong ?
>
> buf is allocated using a malloc, and I know my calling procedure for the
> interrupt works (copies the command block to dos memory and calls using
> __dpmi_interrupt). Help !
You need to use DOS memory, not malloc to get your buffer. You need to then
pass the Seg:Offset to the driver. Not the 32-bit version.
--
(\/) Endlisnis (\/)
s257m AT unb DOT ca
Endlisnis AT GeoCities DOT com
Endlis AT nbnet DOT nb DOT ca
- Raw text -