Thread: char far *Screen;

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

    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
    Using Windows 10 with Code Blocks and MingW.

  2. #2
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    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 04:19 AM.
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

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

    I didnt read your first comment btw.
    Using Windows 10 with Code Blocks and MingW.

  4. #4
    Registered User VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,607
    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, 06:02 AM
  2. Sorting Linked Lists
    By DKING89 in forum C Programming
    Replies: 6
    Last Post: 04-09-2008, 07:36 AM
  3. code condensing
    By bcianfrocca in forum C++ Programming
    Replies: 4
    Last Post: 09-07-2005, 09: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