#include #include #include /* Needed if linking in external compiler; harmless otherwise */ #include #include "wirpos.h" #include "wirposui.h" #include "wirposparam.h" int __stdcall WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpszCmdLine, int nCmdShow) { /* Declare variables */ char log_file[80]; FILE* file_ptr; struct wirpos_param_struct wirpos_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 */ SetStdioPort(CVI_STDIO_WINDOW); SetStdioWindowPosition(50 + 375 + 40, 50); SetStdioWindowSize(300, 325 + 25 + 250); wirposparam_fill_param_struct(&wirpos_param); wirpos_init(log_file, wirpos_param); wirposui_init(50, 50, wirpos_param); wirposopui_init(50, 400); RunUserInterface(); return 0; }