#include #include "abc.h" #pragma comment(lib, "abc.dll.lib") int main(int argc, char* argv[]) { if (argc != 2) { fprintf(stderr, "Usage: %s PATH\n", argv[0]); return 1; } errno_t err; FILE *file; err = fopen_s(&file, argv[1], "rb"); if (err) { fprintf(stderr, "Error for _wfopen_s()\n"); return 2; } printf("calling read_all_from_file()\n"); if (read_all_from_file(file)) { printf("OK\n"); } else { printf("Error\n"); } fclose(file); return 0; }