char far *Screen;

This is a discussion on char far *Screen; within the C++ Programming forums, part of the General Programming Boards category; I found this in a code on FAQ but i dont understand: isnt the pointer sign should be between char ...

  1. #1
    Registered User
    Join Date
    Dec 2007
    Posts
    813

    char far *Screen;

    I found this in a code on FAQ but i dont understand: isnt the pointer sign should be
    between char and far?

    http://faq.cprogramming.com/cgi-bin/...&id=1043284392
    Compiler MSVC++ 2013 with Code::Blocks.

  2. #2
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    22,303
    EDIT #2:

    Okay, I am getting hopelessly confused by my own ignorance. Right, if you read my answer in its original form, you probably have the right answer (search the Web for "far pointer"), but note that this is implementation dependent, not standard. If you read my first edit, then it is something good to take note of, but is not the case here.
    Last edited by laserlight; 06-08-2008 at 05:19 AM.
    C + C++ Compiler: MinGW port of GCC
    Version Control System: Bazaar

    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  3. #3
    Registered User
    Join Date
    Dec 2007
    Posts
    813
    Thank you laserlight, I googled, there are three pointer types: near, far and huge.
    Didnt know it.

    I didnt read your first comment btw.
    Compiler MSVC++ 2013 with Code::Blocks.

  4. #4
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,598
    It's because NEAR, FAR and HUGE to my knowledge are not needed in any Win32 or any protected mode applications. The last time I used these was inside of DOS.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. C++ ini file reader problems
    By guitarist809 in forum C++ Programming
    Replies: 7
    Last Post: 09-04-2008, 07:02 AM
  2. Sorting Linked Lists
    By DKING89 in forum C Programming
    Replies: 6
    Last Post: 04-09-2008, 08:36 AM
  3. code condensing
    By bcianfrocca in forum C++ Programming
    Replies: 4
    Last Post: 09-07-2005, 10:22 AM
  4. Passing structures... I can't get it right.
    By j0hnb in forum C Programming
    Replies: 6
    Last Post: 01-26-2003, 11:55 AM
  5. String sorthing, file opening and saving.
    By j0hnb in forum C Programming
    Replies: 9
    Last Post: 01-23-2003, 01:18 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21