Using comdlg32 functions in shell32
Hello, Does anyone know why shell32 uses LoadLibrary and GetProcAddress to get pointers to GetOpenFileName[AW] in comdlg32, rather than simply importing the library? https://gitlab.winehq.org/wine/wine/-/blob/wine-7.22/dlls/shell32/shellord.c... https://gitlab.winehq.org/wine/wine/-/blob/wine-7.22/dlls/shell32/dialogs.c#... I was about to rip this code out, but I want to make sure that it exists only by historical accident and no longer has a purpose. -Alex
Am 02.12.2022 um 07:07 schrieb Alex Henrie <alexhenrie24(a)gmail.com>:
Hello,
Does anyone know why shell32 uses LoadLibrary and GetProcAddress to get pointers to GetOpenFileName[AW] in comdlg32, rather than simply importing the library?
I am just guessing here, but comdlg32.dll imports shell32.dll. So you have a cyclic dependency. May or may not be a problem.
participants (2)
-
Alex Henrie -
Stefan Dösinger