#include #include /* Needed if linking in external compiler; harmless otherwise */ #include #include "vmag.h" #include "vmagui.h" #include "vmagparam.h" int __stdcall WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpszCmdLine, int nCmdShow) { /* Declare variables */ char log_file[80]; FILE* file_ptr; struct vmag_param_struct vmag_param; int probe_num; char probe_name[80]; /* Initialize all files */ strcpy(log_file, "testlog.ru1"); file_ptr = fopen(log_file, "w"); if (file_ptr == NULL) return 0; fclose(file_ptr); if (InitCVIRTE(hInstance, 0, 0) == 0) /* Needed if linking in external compiler; harmless otherwise */ return -1; /* out of memory */ vmagparam_fill_param_struct(&vmag_param); vmag_init(log_file, vmag_param); vmagui_init(25, 50, vmag_param); vmagopui_init(25, 385); RunUserInterface(); return 0; }