: 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]
Comments
:
: 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]