www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/12/06/09:30:50

From: Derek Greene <topcoder AT mindspring DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: HELP: How to get segment and offset from a buffer?
Date: Sun, 06 Dec 1998 09:28:55 -0500
Organization: MindSpring Enterprises
Lines: 24
Message-ID: <366A94A5.A1E7AB5C@mindspring.com>
References: <01be1ea7$d1a9f220$04ab9bc1 AT default>
NNTP-Posting-Host: d1.56.35.58
Mime-Version: 1.0
X-Server-Date: 6 Dec 1998 14:25:19 GMT
X-Mailer: Mozilla 4.5 [en] (Win95; I)
X-Accept-Language: en
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Okay, this is a problem i ran into not so long ago also!  IT's really a rather
simple solution though.  Use the Go32 routines to allocate a dos memory buffer,
it will return the segment:offset for you.  There's more detailed information
on this subject int he FAQ, but, quite frankly, you can figure out how to use
it properly from the libc.hlp file that you can download. (It's also on the
www.delorie.com site.)

Hope this helps you.

Derek Greene

Spike wrote:

> Hi!
>
> I try to code my first Sound-Library, and I need the segment and offset aof
> my ound-Buffer for the DMA-Chip.
>
> I know when I code in protected mode, I don't have segments and offsets,
> but what do I use now?
>
> THX in advance.
> SPIKE

- Raw text -


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