We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b8e4364 + 321d028 commit 5e9214aCopy full SHA for 5e9214a
PyStand.cpp
@@ -194,8 +194,9 @@ bool PyStand::LoadPython()
194
SetCurrentDirectoryW(runtime.c_str());
195
SetDllDirectoryW(runtime.c_str());
196
197
+ auto pydll = runtime + L"\\python3.dll";
198
// LoadLibrary
- _hDLL = (HINSTANCE)LoadLibraryA("python3.dll");
199
+ _hDLL = (HINSTANCE)LoadLibraryW(pydll.c_str());
200
if (_hDLL) {
201
_Py_Main = (t_Py_Main)GetProcAddress(_hDLL, "Py_Main");
202
}
@@ -210,7 +211,7 @@ bool PyStand::LoadPython()
210
211
212
else if (_Py_Main == NULL) {
213
std::wstring msg = L"Cannot find Py_Main() in:\r\n";
- msg += runtime + L"\\python3.dll";
214
+ msg += pydll;
215
MessageBoxW(NULL, msg.c_str(), L"ERROR", MB_OK);
216
return false;
217
0 commit comments