Mail Archives: djgpp/1994/11/08/22:35:24
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 -