FAR reserved word...

Can someone please explain to me what FAR does in this fn. prototype?

long FAR PASCAL WindowProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lparam);

Thanks alot - lankEman

Comments

  • : Can someone please explain to me what FAR does in this fn. prototype?
    :
    : long FAR PASCAL WindowProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lparam);
    :
    : Thanks alot - lankEman
    :
    [blue]It is only meaningful if you are compiling with a 16-bit compiler for MS-DOS 6.X or earlier. The FAR keyword told the compiler that the function (or other object) resides in a different memory segment address than the current one and requires a 32-bit address to access it. That keyword is obsolete in modern 32-bit compilers such as Dev-C++ or Visual C++ because all addresses are 32-bit addresses.[/blue]
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion