<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Help : Unable to compile archiCAD API's examples in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/Help-Unable-to-compile-archiCAD-API-s-examples/m-p/181310#M5642</link>
    <description>Akos,&lt;BR /&gt;
&lt;BR /&gt;
First of all, thank you for your answer.&lt;BR /&gt;
&lt;BR /&gt;
After some research regarding additionnal dependencies within the example projects, I've come to the conclusion that I had to add several libraries as :&lt;BR /&gt;

&lt;PRE&gt;kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib ACAP_STAT.lib&lt;/PRE&gt;

This time everything compiled properly and was smoothly integrated in the ArchiCAD Add-on Manager.&lt;BR /&gt;
&lt;BR /&gt;
I want to thank you again for your kind help.&lt;BR /&gt;
&lt;BR /&gt;
Regards,&lt;BR /&gt;
&lt;BR /&gt;
Siwar</description>
    <pubDate>Wed, 08 Aug 2012 14:37:59 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2012-08-08T14:37:59Z</dc:date>
    <item>
      <title>Help : Unable to compile archiCAD API's examples</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Help-Unable-to-compile-archiCAD-API-s-examples/m-p/181308#M5640</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;Hello everyone !&lt;BR /&gt;&lt;BR /&gt;I'm currently trying to develop an add-on for ArchiCAD that would suit the needs of the society I work for.&lt;BR /&gt;&lt;BR /&gt;To do so, I've downloaded the API Devkit matching my version of ArchiCAD (v15).&lt;BR /&gt;According to the documentation provided by the Devkit, the example projects are supposed to compile/build just fine using MS Visual C++ 2005 Express.&lt;BR /&gt;&lt;BR /&gt;Unfortunately, none of the examples builds without having some linker tools errors which I'm not able to identify properly and resolve.&lt;BR /&gt;&lt;BR /&gt;For instance, when I'm trying to build the DG_Test example project, I get the following errors : &lt;BR /&gt;
&lt;PRE&gt;1&amp;gt;Linking...
1&amp;gt;   Creating library Win32\Debug\DG_Test.lib and object Win32\Debug\DG_Test.exp
1&amp;gt;DG_Test.obj : error LNK2019: unresolved external symbol __imp__DeleteObject@4 referenced in function "short __cdecl Browser_CB(short,short,short,long,long)" (?Browser_CB@@YAFFFFJJ@Z)
1&amp;gt;DG_Test.obj : error LNK2019: unresolved external symbol __imp__SetCursor@4 referenced in function "short __cdecl Progress_Handler(short,short,short,long,long)" (?Progress_Handler@@YAFFFFJJ@Z)
1&amp;gt;DG_Test.obj : error LNK2019: unresolved external symbol __imp__LoadCursorA@8 referenced in function "short __cdecl Progress_Handler(short,short,short,long,long)" (?Progress_Handler@@YAFFFFJJ@Z)
1&amp;gt;ACAP_STAT.lib(ACAPlib.obj) : error LNK2019: unresolved external symbol __imp__RegisterWindowMessageA@4 referenced in function "bool __fastcall DllInit(struct DllMainImp_InitContext const *)" (?DllInit@@YI_NPBUDllMainImp_InitContext@@@Z)
1&amp;gt;Win32\Debug\DG_Test.apx : fatal error LNK1120: 4 unresolved externals&lt;/PRE&gt;
I've read in some of the topics related to mine that the most recommended IDE (as for Windows) is MS Visual Studio 2005, though MS Visual C++ 2005 Express is told to work equally well.&lt;BR /&gt;&lt;BR /&gt;Am I missing something ? Is there anything I'm supposed to modify or add in the example project's properties in order to make it build ?&lt;BR /&gt;&lt;BR /&gt;Any help would be greatly appreciated and I thank you in advance for your answers. Feel free to ask for more precision concerning the linker tools errors I get during the build process, depending on the corresponding example project.&lt;BR /&gt;&lt;BR /&gt;Kindly,&lt;BR /&gt;&lt;BR /&gt;Siwar&lt;BR /&gt;&lt;BR /&gt;PS : Here's some details about my configuration :&lt;BR /&gt;- Windows XP SP3 (32-bits)&lt;BR /&gt;- ArchiCAD API Devkit v15.2702 / ArchiCAD v15 &lt;BR /&gt;- MS Visual C++ 2005 Express Edition&lt;/DIV&gt;</description>
      <pubDate>Wed, 02 Aug 2023 14:21:44 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Help-Unable-to-compile-archiCAD-API-s-examples/m-p/181308#M5640</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-08-02T14:21:44Z</dc:date>
    </item>
    <item>
      <title>Re: Help : Unable to compile archiCAD API's examples</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Help-Unable-to-compile-archiCAD-API-s-examples/m-p/181309#M5641</link>
      <description>&lt;BLOCKQUOTE&gt;Mansour wrote:&lt;BR /&gt;Hello everyone !&lt;BR /&gt;
&lt;BR /&gt;
I'm currently trying to develop an add-on for ArchiCAD that would suit the needs of the society I work for.&lt;BR /&gt;
&lt;BR /&gt;
To do so, I've downloaded the API Devkit matching my version of ArchiCAD (v15).&lt;BR /&gt;
According to the documentation provided by the Devkit, the example projects are supposed to compile/build just fine using MS Visual C++ 2005 Express.&lt;BR /&gt;
&lt;BR /&gt;
Unfortunately, none of the examples builds without having some linker tools errors which I'm not able to identify properly and resolve.&lt;BR /&gt;
&lt;BR /&gt;
For instance, when I'm trying to build the DG_Test example project, I get the following errors : &lt;BR /&gt;

&lt;PRE&gt;1&amp;gt;Linking...
1&amp;gt;   Creating library Win32\Debug\DG_Test.lib and object Win32\Debug\DG_Test.exp
1&amp;gt;DG_Test.obj : error LNK2019: unresolved external symbol __imp__DeleteObject@4 referenced in function "short __cdecl Browser_CB(short,short,short,long,long)" (?Browser_CB@@YAFFFFJJ@Z)
1&amp;gt;DG_Test.obj : error LNK2019: unresolved external symbol __imp__SetCursor@4 referenced in function "short __cdecl Progress_Handler(short,short,short,long,long)" (?Progress_Handler@@YAFFFFJJ@Z)
1&amp;gt;DG_Test.obj : error LNK2019: unresolved external symbol __imp__LoadCursorA@8 referenced in function "short __cdecl Progress_Handler(short,short,short,long,long)" (?Progress_Handler@@YAFFFFJJ@Z)
1&amp;gt;ACAP_STAT.lib(ACAPlib.obj) : error LNK2019: unresolved external symbol __imp__RegisterWindowMessageA@4 referenced in function "bool __fastcall DllInit(struct DllMainImp_InitContext const *)" (?DllInit@@YI_NPBUDllMainImp_InitContext@@@Z)
1&amp;gt;Win32\Debug\DG_Test.apx : fatal error LNK1120: 4 unresolved externals&lt;/PRE&gt;

I've read in some of the topics related to mine that the most recommended IDE (as for Windows) is MS Visual Studio 2005, though MS Visual C++ 2005 Express is told to work equally well.&lt;BR /&gt;
&lt;BR /&gt;
Am I missing something ? Is there anything I'm supposed to modify or add in the example project's properties in order to make it build ?&lt;BR /&gt;
&lt;BR /&gt;
Any help would be greatly appreciated and I thank you in advance for your answers. Feel free to ask for more precision concerning the linker tools errors I get during the build process, depending on the corresponding example project.&lt;BR /&gt;
&lt;BR /&gt;
Kindly,&lt;BR /&gt;
&lt;BR /&gt;
Siwar&lt;BR /&gt;
&lt;BR /&gt;
PS : Here's some details about my configuration :&lt;BR /&gt;
	- Windows XP SP3 (32-bits)&lt;BR /&gt;
	- ArchiCAD API Devkit v15.2702 / ArchiCAD v15	&lt;BR /&gt;
	- MS Visual C++ 2005 Express Edition&lt;/BLOCKQUOTE&gt;

&lt;BR /&gt;
Siwar,&lt;BR /&gt;
&lt;BR /&gt;
Have also downloaded and configured the Windows SDK? That is not part of the normal VS Express installation. Also, you can only compile 32-bit versions; 64-bit tools are not part of the Express edition.&lt;BR /&gt;
&lt;BR /&gt;
Best, Akos</description>
      <pubDate>Wed, 08 Aug 2012 14:11:27 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Help-Unable-to-compile-archiCAD-API-s-examples/m-p/181309#M5641</guid>
      <dc:creator>Akos Somorjai</dc:creator>
      <dc:date>2012-08-08T14:11:27Z</dc:date>
    </item>
    <item>
      <title>Re: Help : Unable to compile archiCAD API's examples</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Help-Unable-to-compile-archiCAD-API-s-examples/m-p/181310#M5642</link>
      <description>Akos,&lt;BR /&gt;
&lt;BR /&gt;
First of all, thank you for your answer.&lt;BR /&gt;
&lt;BR /&gt;
After some research regarding additionnal dependencies within the example projects, I've come to the conclusion that I had to add several libraries as :&lt;BR /&gt;

&lt;PRE&gt;kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib ACAP_STAT.lib&lt;/PRE&gt;

This time everything compiled properly and was smoothly integrated in the ArchiCAD Add-on Manager.&lt;BR /&gt;
&lt;BR /&gt;
I want to thank you again for your kind help.&lt;BR /&gt;
&lt;BR /&gt;
Regards,&lt;BR /&gt;
&lt;BR /&gt;
Siwar</description>
      <pubDate>Wed, 08 Aug 2012 14:37:59 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Help-Unable-to-compile-archiCAD-API-s-examples/m-p/181310#M5642</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-08-08T14:37:59Z</dc:date>
    </item>
  </channel>
</rss>

