Message385645
Thinking about what you said, "the loader waits to load it until first accessed via GetProcAddress()" did you mean by that, that the following code should work:
h = LoadLibraryW(L"some/path/to/python3.dll")
py_main = GetProcAddress(h, "Py_Main")
(with some/path/to/python39.dll being loaded on the second line)? Because if so, then that's what doesn't work for me.
Or are you suggesting that I do
AddDllDirectoryW(L"some/path/to");
h = LoadLibraryW(L"python3.dll");
py_main = GetProcAddress(h, "Py_Main");
Because I didn't think to try that - and I'm not 100% sure how I'd have to do stuff like LOAD_LIBRARY_SEARCH_USER_DIRS and/or SetDefaultDllDirectories to make that work. I find the Microsoft docs on all of this really complex and hard to follow if you're a non-expert :-( |
|
Date |
User |
Action |
Args |
2021-01-25 19:02:16 | paul.moore | set | recipients:
+ paul.moore, tim.golden, jkloth, zach.ware, eryksun, steve.dower |
2021-01-25 19:02:16 | paul.moore | set | messageid: <1611601336.71.0.34252217072.issue43022@roundup.psfhosted.org> |
2021-01-25 19:02:16 | paul.moore | link | issue43022 messages |
2021-01-25 19:02:16 | paul.moore | create | |
|