2025-05-26 09:53 AM
On the Windows platform, where should the DLLs that plugins depend on be placed? I am currently in the same level directory as the plugin, but the plugin failed to load.
Solved! Go to Solution.
2025-05-26 01:59 PM - edited 2025-05-26 02:00 PM
I guess, for static DLL loading it will be Archicad.exe path.
I used DLLs with my addon early. Both own DLLs and a third-party DLL.
But I used only dynamic loading using LoadLibraryEx (LOAD_WITH_ALTERED_SEARCH_PATH) and GetProcAddress, so I used a direct DLL's path inside where my addon was installed.
I dont know, may be there is a simple way and anybody will point you.
My approach for loading third-party DLL was indirect. My own DLL was dependent on third-party DLL.
From my addon I loaded only my DLL using LoadLibraryEx (LOAD_WITH_ALTERED_SEARCH_PATH) and it loaded the third-party DLL automatically, from my DLL folder. My addon had a simple root function linked by GetProcAddress.
2025-05-26 01:59 PM - edited 2025-05-26 02:00 PM
I guess, for static DLL loading it will be Archicad.exe path.
I used DLLs with my addon early. Both own DLLs and a third-party DLL.
But I used only dynamic loading using LoadLibraryEx (LOAD_WITH_ALTERED_SEARCH_PATH) and GetProcAddress, so I used a direct DLL's path inside where my addon was installed.
I dont know, may be there is a simple way and anybody will point you.
My approach for loading third-party DLL was indirect. My own DLL was dependent on third-party DLL.
From my addon I loaded only my DLL using LoadLibraryEx (LOAD_WITH_ALTERED_SEARCH_PATH) and it loaded the third-party DLL automatically, from my DLL folder. My addon had a simple root function linked by GetProcAddress.
2025-05-27 03:25 AM
Ok,thanks.