0

私が書いたコードの1つで SetDllDirectory() を使用していますが、プロジェクトをコンパイルすると次のようなエラーが発生します:

SetDllDirectory was not declared in this scope

これがコードスニペットです

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");

}
4

1 に答える 1