To compile a Monitor Client Library application on a Windows platform, do the following:
Include the following line in each source file that uses Monitor Client Library:
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.
Set the compiler preprocessor option to define the _WIN and WIN32 preprocessor macros.
Set the code generation option to use the __cdecl calling convention.
To use a calling convention other than the default, you must declare it in each callback function that uses it.