2023-11-30 05:32 PM - last edited on 2024-09-17 12:45 PM by Doreena Deng
I have working code for an ArchiCAD-Addon for Versions 22-26. Now I try to run it with ArchiCAD 27 but it fails in the following line:
m_hModule = ::LoadLibrary(wstrDLLPath);
LoadLibrary() returns 0.
I investigated, that ::GetLastError(); returns 127, that means a Procedure is not found.
This does not make much sense in the ::LoadLibrary function.
Maybe it is the
BOOL APIENTRY DllMain(HMODULE hModule, DWORD ul_reason_for_call, LPVOID lpReserved);
function that is missing in my DLL. Or did I miss something else?
Solved! Go to Solution.
2023-12-04 09:31 AM
I found my mistake: It is my own DLL and it includes some ArchiCAD API functions. I compiled and linked it against the ArchiCAD 26 API and tried to load the DLL with ArchiCAD 27.
2023-12-03 09:07 PM
Hi Martin,
Couple of questions:
Is this your own DLL?
Is it on a path accessible by Archicad?
Can you load it if you place the DLL beside Archicad 27?
Best, Akos
2023-12-04 09:31 AM
I found my mistake: It is my own DLL and it includes some ArchiCAD API functions. I compiled and linked it against the ArchiCAD 26 API and tried to load the DLL with ArchiCAD 27.