Compiling the application

To compile a Monitor Client Library application on a Windows platform, do the following:

  1. Include the following line in each source file that uses Monitor Client Library:

    	#include "mcpublic.h"
  2. Include the path of the directory that contains the Monitor Client Library and Open Client header files in the list of directories (sometimes called the Include path) in which the C compiler preprocessor looks for header files. The header files for Monitor Client Library and Open Client are installed, by default, in the C:\SYBASE\INCLUDE directory.

  3. Set the compiler preprocessor option to define the _WIN and WIN32 preprocessor macros.

  4. Set the code generation option to use the __cdecl calling convention.

NoteTo use a calling convention other than the default, you must declare it in each callback function that uses it.