We value your input!
Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey

Archicad C++ API
About Archicad add-on development using the C++ API.
SOLVED!

Archicad Dll_Test example crash

leilei
Enthusiast
Hi,I compiled the Dll_Test example in Archicad.
When I start Archicad, it crashes every time in CheckEnvironment.How can I test this example?
1 ACCEPTED SOLUTION

Accepted Solutions
Solution
leilei
Enthusiast
Ralph wrote:
I notice a reference to (Win32) in your posted image. Are you possibly trying to build the add-on as 32-bit rather than 64?
Hi Ralph,
I used the Dependency Walker tool to view the DLL function, the GetProcAddress (gACAPIDLL, "ACAPI_GetOwnResModule") is null; it should be GetProcAddress (gACAPIDLL, "?ACAPI_GetOwnResModule@@YA_J_J@Z");
Now this plugin works fine.

View solution in original post

3 REPLIES 3
Ralph Wessel
Mentor
I notice a reference to (Win32) in your posted image. Are you possibly trying to build the add-on as 32-bit rather than 64?
Ralph Wessel BArch
Software Engineer Speckle Systems
Solution
leilei
Enthusiast
Ralph wrote:
I notice a reference to (Win32) in your posted image. Are you possibly trying to build the add-on as 32-bit rather than 64?
Hi Ralph,
I used the Dependency Walker tool to view the DLL function, the GetProcAddress (gACAPIDLL, "ACAPI_GetOwnResModule") is null; it should be GetProcAddress (gACAPIDLL, "?ACAPI_GetOwnResModule@@YA_J_J@Z");
Now this plugin works fine.
leilei
Enthusiast
I compiled it all X64, start archicad don't know why it is win32 (exe)