www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/11/08/22:35:24

Date: Tue, 8 Nov 1994 16:28:53 -0500
To: djgpp AT sun DOT soe DOT clarkson DOT edu
From: sad AT id DOT net (Scott Deming)
Subject: Real Mode pointers.

I'm having a little difficulty getting something to work, so maybe someone 
here can help me out. :)

What I need to do is allocate a chunk of conventional memory.

Here is what I've got right now:

    char *convBuffer;
    _go32_dpmi_seginfo convAlloc;

    convAlloc.size = (fStat.st_size+15)/16;
    if (_go32_dpmi_allocate_dos_memory(&convAlloc) != 0) {
        return (NULL);
    }
    convBuffer = convAlloc.rm_segment;

This doesn't seem to work.  What do I need to do to make "convBuffer" point 
to the "segment:offset" of the conventional memory allocated with 
_go32_dpmi_allocated_dos_memory()?

Any help would be greatly appreciated.
--
Scott A. Deming
sad AT id DOT net


- Raw text -


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