From: "Gregorio Hankiewicz" Newsgroups: comp.os.msdos.djgpp,comp.graphics.algorithms Subject: Re: VESA 2.0 and getch() bug? Date: 21 Mar 1997 15:15:48 GMT Organization: Unisource Espana NEWS SERVER Lines: 35 Message-ID: <01bc3554$b2601ea0$0100007f@pentium-120> References: <332FB886 DOT 3A9F AT finebody DOT com> NNTP-Posting-Host: info181.jet.es To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp > How can this work: > void VESAdriver::flipPage(byte* poff) { > byte* video = (byte*)ADDR; > __djgpp_nearptr_enable(); > video -= __djgpp_base_address; > memcpy(video,poff,320*3*240); > __djgpp_nearptr_disable(); > getch(); > } > > and this don't? > void VESAdriver::flipPage(byte* poff) { > byte* video = (byte*)ADDR; > __djgpp_nearptr_enable(); > video -= __djgpp_base_address; > memcpy(video,poff,320*3*240); > __djgpp_nearptr_disable(); > // getch(); > } > The only difference I noticed is that in the second one you put an '//' before getch(), suposedly to make the compiler ignore the line. I think there's somewhere on a readme file which comes with djgpp that '//' is not recognized as a remark. However, you still can use /* */ or just erase the line. First try putting /* before and */ after the line you want to remark. If it still doesn't work, erase that line. Hope this helps. -- Have a nice day :) Gregorio Hankiewicz gregorio AT jet DOT es, http://www.jet.es/gregorio