#include #include /* Needed if linking in external compiler; harmless otherwise */ #include #include "tmag.h" #include "tmagui.h" #include "tmagparam.h" int __stdcall WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpszCmdLine, int nCmdShow) { /* Declare variables */ char log_file[80]; FILE* file_ptr; struct tmag_param_struct tmag_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); tmagparam_fill_param_struct(&tmag_param); tmag_init(log_file, tmag_param); tmagui_init(25, 50, tmag_param); tmagopui_init(25, 385); //probe_num = 2; //tmag_get_probe_name(probe_num, probe_name); //printf("Probe %i is %s\n", probe_num, probe_name); RunUserInterface(); return 0; }