From: "Mete Ciragan" Newsgroups: comp.os.msdos.djgpp Subject: Re: Why doesn't my program run correctly? Date: 7 Sep 1997 23:03:34 GMT Organization: UBS Networkservices Lines: 16 Message-ID: <01bcbbe1$429618e0$7900d2c3@mete> References: <3KQHUN$Qiz AT titan DOT cc DOT ntu DOT edu DOT tw> NNTP-Posting-Host: ppp226.swix.ch To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk > Why doesn't my program run correctly? > What's wrong ? You have to far peek the bytes. int i = 0; unsigned char str[256]; unsigned long addr = RM_TO_LINEAR(vesa_info.OEMStringPtr); _farsetsel(_dos_ds); while ((str[i++] = _farnspeekb(addr++)) != 0); Hmm, hope this works, ... Mete. mete AT swix DOT ch http://www.swix.ch/clan/mete