Because the standard Windows header file, WINDOWS.H, contains definitions used by NI488.H (which contains prototypes for the GPIB routines and constants), you need to include it in your application. Simply insert it just before including NI488.H, as shown below.
#include <windows.h>
#include "ni488.h"
Hope this information helps.