From: Derek Newsgroups: comp.os.msdos.djgpp Subject: buffer pointer.... Date: Tue, 11 May 1999 01:11:53 -0500 Organization: The University of Manitoba Lines: 23 Message-ID: <3737CA29.313E459B@geocities.com> NNTP-Posting-Host: annex3-20.cc.umanitoba.ca Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: canopus.cc.umanitoba.ca 926403346 26614 130.179.153.132 (11 May 1999 06:15:46 GMT) X-Complaints-To: Postmaster AT cc DOT umanitoba DOT ca NNTP-Posting-Date: 11 May 1999 06:15:46 GMT X-Mailer: Mozilla 4.51 [en] (Win95; U) 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 Hello... I was curious how I would get a segment:offset pair from a 32 bit address in djgpp? why you may ask? Because I need to get the segment:offset pair of a pointer to calculate it's 20 bit absolute address so I can use it in my sound routine(I'm *trying* to avoid using djgpp_near_pointer_enable();).... but being relativly new to protected mode programming I haven't a clue how to do this... for example.. i do this: unsigned char *buffer=(unsigned char *)calloc(64000,1); this gets me a pointer to a buffer...now what I need from the pointer is a segment:offset pair.....how would I do this? TIA. Derek