5f2 Subj : Re: far pointers To : borland.public.cpp.borlandcpp From : "Ed Mulroy [TeamB]" Date : Sat Dec 13 2003 01:28 pm The free compiler reports itself as version 5.5 and is the set of C++ Builder 5 command line tools. It creates 32 bit programs for the current versions of Windows. The code you show is 16 bit code for DOS. C++ Builder does not create 16 bit code and does not use far pointers. The current versions of Windows are now 32 bit and do not support direct access of video memory. In a console mode (text mode) program you can write to the screen with functions such as putchar, printf, puts, cputs, putch or cprintf, the same functions as are used in a 16 bit DOS program. If you have a need to place the data in a block of memory on the screen you could use puttext and to read it back use gettext. .. Ed > Joel B.M. wrote in message > news:3fdb4789@newsgroups.borland.com... > > Video Access. > my next code work well in Borland c 3.5 ( 16 bits ) > > unsigned int far *address; > int i; > char *Field = "This is a Test"; > > address = ( unsigned int far *)0xB8000000L; > > for( i = 0; i < strlen(Field) ; i++) > *(address+i) = *(Field+i ); > > but , when a try to compile with Borland C 5.5 ( 32 bits ) , > it make a Error with Far Pointer. i changed > > unsigned int _FAR *address; > > but when i run Exe file, windows make a Error Call. > someone can tell me what is the best way to do it like Borland C 3.5 . 0