Path: utzoo!utgpu!news-server.csri.toronto.edu!clyde.concordia.ca!mcgill-vision!snorkelwacker!usc!sdd.hp.com!zaphod.mps.ohio-state.edu!samsung!munnari.oz.au!uhccux!julian From: julian@uhccux.uhcc.Hawaii.Edu (Julian Cowley) Newsgroups: comp.lang.c Subject: Microsoft C far pointer dereferencing Message-ID: <9031@uhccux.uhcc.Hawaii.Edu> Date: 16 Aug 90 04:33:29 GMT Organization: University of Hawaii at Manoa Lines: 20 Ok, I've read the articles concerning the use of (void far *) in Microsoft C, but I still can't figure out why the pointer in following piece of code won't dereference. What I'm trying to do is access the MCGA screen at A000:0000, in case there is a better way to do this... PutPixel (int x, int y, unsigned char c) { unsigned char far *mem; FP_SEG (mem) = 0xa000; FP_OFF (mem) = 320 * y + x; *mem = c; /* <-- this line gives a run-time error */ } julian cowley university of hawaii at manoa julian@uhccux.uhcc.hawaii.edu julian@uhccux.bitnet