Original Post
Hi, I am writing a language pack for my OpenGL game, and I thought that it'd be a good idea to store the data in a .dll. (If it is not, please let me know!) That looks like this: #define EXP __declspec(dllexport) extern const char * EXP LANG_NewGame = "Nieuw spel" Now, I try to load the char* like this, but it fails: string temp = stAppDirectory + "Dutch.dll"; LoadMe = LoadLibrary(temp.c_str()); if (LoadMe != NULL) { strcpy(LANG_NewGame, (char*)GetProcAddress(LoadMe, "LANG_NewGame")); // int* lol = (int*)GetProcAddress(LoadMe, "LANG_NewGame"); // LANG_NewGame = (char*)lol; FreeLibrary(LoadMe); } I can't include a .def file, because I don't know in design time what language pack a player wants.