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!

addon.apx not a valid win32 application

dushyant
Enthusiast
Hello,
On trying to compile an addon on visual-studio-2017, I get the error: "addonName.apx is not a valid win32 application".. What's the problem here? (I have compiled this addon earlier and it worked.)

Thanks.
1 ACCEPTED SOLUTION

Accepted Solutions
Solution
Ralph Wessel
Mentor
dushyant wrote:
Can you please tell where exactly is this path to be set in Visual Studio?
In the project Properties, under the section Configuration Properties > Debugging > Command
Just set a path to the target version of Archicad
Ralph Wessel BArch
Software Engineer Speckle Systems

View solution in original post

7 REPLIES 7
Ralph Wessel
Mentor
In what context did you see this error? In a sense, the report is correct - an add-on is not an application.
Ralph Wessel BArch
Software Engineer Speckle Systems
dushyant
Enthusiast
I get this error while trying to build the addon from the Visual-Studio-Solution..
Ralph Wessel
Mentor
I assume this was when you tried to debug or run the add-on? If so, you need to set the executable path for debugging to the Archicad application.
Ralph Wessel BArch
Software Engineer Speckle Systems
dushyant
Enthusiast
Can you please tell where exactly is this path to be set in Visual Studio?
Tibor Lorantfy
Graphisoft Alumni
Graphisoft Alumni
APX Add-Ons are dynamic librarys (DLL) on Windows platform so those cannot be executed.
The executable is the ARCHICAD.exe, that will load your Add-On, so you should set the path of ARCHICAD.exe.
After ARCHICAD was opened, you can load your Add-On from the Add-On Manager dialog (if it wasn't loaded yet).
Solution
Ralph Wessel
Mentor
dushyant wrote:
Can you please tell where exactly is this path to be set in Visual Studio?
In the project Properties, under the section Configuration Properties > Debugging > Command
Just set a path to the target version of Archicad
Ralph Wessel BArch
Software Engineer Speckle Systems
dushyant
Enthusiast
Thanks a lot!