Date: Wed, 22 Sep 1999 20:44:47 -0500 (GMT) From: Anuj Bhatia X-Sender: bhatia AT giasdla To: djgpp AT delorie DOT com Subject: farptr problem Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com Hi I'm trying to read the VESA OEM String from my program. I have read the faq and an article on www.delorie.com. I have followed all the instructions. My problem is that whenever I use the _farpeekb function in a loop I always get a string of ASCII 1's. However when I use the dosmemget function the results are correct. I am using _dos_ds as the selector for the farpeekb function. (I have read that the dosmemget function also uses _dos_ds internally). I do convert the far ptr returned by the VESA driver to a linear offset. (I use the same offset for farpeekb and dosmemget). Why doesn't farpeekb work? Thanks in advance Anuj