Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Studio
  4. Far Pointers

Far Pointers

Scheduled Pinned Locked Moved Visual Studio
c++delphivisual-studioquestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    Jim Warburton
    wrote on last edited by
    #1

    I have some coding to do which involves the use of far pointers. From what I have been able to root out VS does not support far pointers. Before I pull out Borland C++ 4.5, is this correct or does VS support far pointers?

    this thing looks like it was written by an epileptic ferret Dave Kreskowiak

    G 1 Reply Last reply
    0
    • J Jim Warburton

      I have some coding to do which involves the use of far pointers. From what I have been able to root out VS does not support far pointers. Before I pull out Borland C++ 4.5, is this correct or does VS support far pointers?

      this thing looks like it was written by an epileptic ferret Dave Kreskowiak

      G Offline
      G Offline
      Graham Bradshaw
      wrote on last edited by
      #2

      Far pointers are a holdover from 16bit segmented architectures on 8086 processors. If you're using a compiler from Visual C++ 1.0 onwards, or any other 32-bit compiler, you don't need to worry about it. The Windows SDK typedef's FAR to an empty string.

      J 1 Reply Last reply
      0
      • G Graham Bradshaw

        Far pointers are a holdover from 16bit segmented architectures on 8086 processors. If you're using a compiler from Visual C++ 1.0 onwards, or any other 32-bit compiler, you don't need to worry about it. The Windows SDK typedef's FAR to an empty string.

        J Offline
        J Offline
        Jim Warburton
        wrote on last edited by
        #3

        Thanks for the reply. I am working with legacy code which contains such wonderful calls as FP_OFF(), FP_SEG(). I believe it is these calls and the manipulation of far pointers which is crashing the code. Short of writing a header file to handle far pointers I was hoping VS may have had some obscure setting for dealing with far pointers. I suspect it is time to dust off Borland and fire up the Windows 98 machine.

        this thing looks like it was written by an epileptic ferret Dave Kreskowiak

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups