Hej, mam problem z odczytem/zapisem pliku w dołączonej .dll. Kod w file_good w ogóle się nie wykonuje.
BOOL WINAPI DllMain(HINSTANCE instance, DWORD reason, LPVOID reserved) { switch(reason) { case DLL_PROCESS_ATTACH: CreateThread(NULL, NULL, &eventt, NULL, NULL, NULL); break; } } DWORD WINAPI eventt(LPVOID) { printf("ok"); string s1; string s2; ifstream file; file.open("set.txt", ios::in); if(file.good() == true) { std::getline(file, s1); std::getline(file, s2); printf("good"); file.close(); } }