MATES / Modular Automatic Test Equipment System API  2.5.0.0
mates_test_03.c
#include <stdio.h>
#include <windows.h>
#include "mates.h"
int main(void)
{
MATES_HANDLE h = mates_open("proxy.mon", 1);
if (h != NULL)
{
printf("Successfully opened MATES\n");
}
else
{
char buf[4096];
while (mates_get_last_error(buf, sizeof(buf)) > 0)
{
printf(buf);
}
}
/* Always close the handle. */
return (0);
}