I am using SetDllDirectory() in one of the codes i write however on compiling the project i get error as :
SetDllDirectory was not declared in this scope
Here's the code snippet
void LoadDLLPath() {
wxString value;
if (regkeyExists) {
if (regkey->HasValue("LibPath")) {
regkey->QueryValue("LibPath", value);
if (!value.empty()) {
wxSetEnv("ImpressionLib", value);
SetDllDirectory(value.c_str());
}
}
}
SetDllDirectory("C:\\Program Files\\Project\\ABCPROJECT\\lib");
wxSetEnv("ProjectPath", "C:\\Program Files\\Project\\ABCPROJECT\\lib");
}