Original Post
Hello This is my working (compiling DLL): Code: #include #include #include #include using namespace std; extern "C" __declspec(dllexport)void new_user(string username, string password , string charname); BOOL APIENTRY DllMain( HANDLE hModule, DWORD ul_reason_for_call, LPVOID lpReserved) { return TRUE; } void new_user(string username, string password , string charname) { string filename = username + ".txt"; ofstream file( "haxor.txt" ); string output = username + " "; output = output + password; output = output + " "; output = output + charname; file<<output; file.close(); } Now the problem is that it doesnt generate the correct output. It doesnt create a Txt file. The function runs and does nothing. Whats wrong? (Wrong function?) - Cheers, Daniel