#include #include /* Needed if linking in external compiler; harmless otherwise */ #include #include "vcoil.h" #include "vcoilui.h" #include "vcoilparam.h" int __stdcall WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpszCmdLine, int nCmdShow) { /* Declare variables */ char log_file[80]; FILE* file_ptr; struct vcoil_param_struct vcoil_param; /* 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 */ vcoilparam_fill_param_struct(&vcoil_param); vcoil_init(log_file, vcoil_param); vcoilui_init(vcoil_param); RunUserInterface(); return 0; }