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

AC DEVkit 12 examples build error "windows.h" missing?

Anonymous
Not applicable
I have downloaded the add-on development kit for AC12. i have tried to build the examples with visual C++ 2005 express edition and i get the following error:

1>c:\Program Files\Graphisoft\API Development Kit 12.2156\Support\Modules\GSRoot\Win32Interface.hpp(34) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory

I have searched for this file "windows.h" file and i cant find it
can anyone help?

Thanks Mark
7 REPLIES 7
Ralph Wessel
Mentor
Mark wrote:
C1083: Cannot open include file: 'windows.h': No such file or directory
I have searched for this file "windows.h" file and i cant find it
can anyone help?
Take a look at your Solution Properties - browse into the C/C++/Preprocessor settings. The setting "Ignore Standard Include Path" should be 'No'.
Ralph Wessel BArch
Karl Ottenstein
Moderator
I do not believe that the Windows SDK is part of the Express download. If Ralph's suggestion does not resolve things for you, you may have to follow the links on the Express-related and/or MSDN web pages for the SDK download. (You will not need MFC.)

Please post how how you resolve things.

Cheers,
Karl
One of the forum moderators
AC 27 USA and earlier   •   macOS Ventura 13.6.3, MacBook Pro M2 Max 12CPU/30GPU cores, 32GB
Girts Gaidels
Participant
I am using Visual C++ 2005 express for AC 12 DevKit without problems.
As Karl said, Windows SDK is not a part of the Express download. You need some extra steps after installation.
Look at links below for more info:

http://www.codeproject.com/KB/applications/FreeVS2005Win32.aspx
https://security-shell.ws/showthread.php?t=3612
http://msdn.microsoft.com/en-us/library/ms235626(VS.80).aspx


Regards,
Girts
Karl Ottenstein
Moderator
Thank you for posting the links, Girts!

Cheers,
Karl
One of the forum moderators
AC 27 USA and earlier   •   macOS Ventura 13.6.3, MacBook Pro M2 Max 12CPU/30GPU cores, 32GB
Anonymous
Not applicable
Thanks for the links will give it a go now cheers
Anonymous
Not applicable
Thanks for the help guys the examples are building now.
cheers,
Mark
Karl Ottenstein
Moderator
That's good news, Mark. Thanks for confirming.

Cheers,
Karl
One of the forum moderators
AC 27 USA and earlier   •   macOS Ventura 13.6.3, MacBook Pro M2 Max 12CPU/30GPU cores, 32GB

Didn't find the answer?

Check other topics in this Forum

Back to Forum

Read the latest accepted solutions!

Accepted Solutions

Start a new conversation!