<?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: New Developer - Can't Build Examples in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/New-Developer-Can-t-Build-Examples/m-p/176226#M6181</link>
    <description>&lt;BLOCKQUOTE&gt;didrik wrote:&lt;BR /&gt;I asked GS TS if there were API intro classes which would cover just the sorts of things that arise at the beginning, and are stumbling blocks that are real enthusiasm killers"&lt;/BLOCKQUOTE&gt;
The best approach is to follow the API requirements as closely as possible, e.g. use Microsoft Visual C++ .NET 2005 rather than Express. You should then find that you can open, build, and run the examples without any problems.</description>
    <pubDate>Sat, 26 Feb 2011 11:35:34 GMT</pubDate>
    <dc:creator>Ralph Wessel</dc:creator>
    <dc:date>2011-02-26T11:35:34Z</dc:date>
    <item>
      <title>New Developer - Can't Build Examples</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/New-Developer-Can-t-Build-Examples/m-p/176222#M6177</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;I am new to developing add-ons and also new to C++ (I have done programming in other languages before). I have installed the Dev Kit 14.2550 and Visual C++ 2005 Express and read everything I can find on building the example projects but cannot get any examples to build (I'm not even sure if I'm doing it right). Once I can get something running I can learn from there.&lt;BR /&gt;&lt;BR /&gt;The documentation says that all the examples should build in Visual Studio 2005 Express, but I can't find anywhere exactly how to build them (coming from a beginners point of view)&lt;BR /&gt;&lt;BR /&gt;If I try to build the whole solution, it comes up with an error like this...&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;1&amp;gt;BSCMAKE: error BK1506 : cannot open file '.\debug\Attribute_Test.sbr': No such file or directory&lt;/BLOCKQUOTE&gt;
If I compile just the grc files separately, they succeed but don't seem to be of any use.&lt;BR /&gt;&lt;BR /&gt;If I compile the rc2 file separately I get a "cannot find windows.h" error.&lt;BR /&gt;&lt;BR /&gt;It would be greatly appreciated if someone could please get me started with an example of how to correctly open and build one of the example projects (as in which buttons to click to make it work), and any settings that I need to get up and running?&lt;BR /&gt;&lt;BR /&gt;Thanks in advance,&lt;BR /&gt;&lt;BR /&gt;Matt&lt;/DIV&gt;</description>
      <pubDate>Thu, 03 Aug 2023 08:22:30 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/New-Developer-Can-t-Build-Examples/m-p/176222#M6177</guid>
      <dc:creator>Matt Balaam</dc:creator>
      <dc:date>2023-08-03T08:22:30Z</dc:date>
    </item>
    <item>
      <title>Re: New Developer - Can't Build Examples</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/New-Developer-Can-t-Build-Examples/m-p/176223#M6178</link>
      <description>&lt;BLOCKQUOTE&gt;mcjh_matt wrote:&lt;BR /&gt;The documentation says that all the examples should build in Visual Studio 2005 Express, but I can't find anywhere exactly how to build them (coming from a beginners point of view)&lt;/BLOCKQUOTE&gt;
The documentation calls for &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;Microsoft Visual C++ .NET 2005&lt;E&gt;&lt;/E&gt;. I don't know if Express will do the same job, but I haven't tried to make it work either.</description>
      <pubDate>Wed, 16 Feb 2011 14:38:31 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/New-Developer-Can-t-Build-Examples/m-p/176223#M6178</guid>
      <dc:creator>Ralph Wessel</dc:creator>
      <dc:date>2011-02-16T14:38:31Z</dc:date>
    </item>
    <item>
      <title>Re: New Developer - Can't Build Examples</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/New-Developer-Can-t-Build-Examples/m-p/176224#M6179</link>
      <description>True, the documentation does say Microsoft Visual C++ .NET 2005, although I have read in other posts that Express is capable of building the addons with a few tweaks, I'm just not sure how to go about it.</description>
      <pubDate>Thu, 17 Feb 2011 00:14:09 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/New-Developer-Can-t-Build-Examples/m-p/176224#M6179</guid>
      <dc:creator>Matt Balaam</dc:creator>
      <dc:date>2011-02-17T00:14:09Z</dc:date>
    </item>
    <item>
      <title>Re: New Developer - Can't Build Examples</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/New-Developer-Can-t-Build-Examples/m-p/176225#M6180</link>
      <description>Likewise, I would have similar questions and similar needs.  Earlier this week I asked GS TS if there were API intro classes which would cover just the sorts of things that arise at the beginning, and are stumbling blocks that are real enthusiasm killers.  Such courses are offered "on demand," so to speak.  Should we "demand?"</description>
      <pubDate>Sat, 26 Feb 2011 05:16:03 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/New-Developer-Can-t-Build-Examples/m-p/176225#M6180</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-02-26T05:16:03Z</dc:date>
    </item>
    <item>
      <title>Re: New Developer - Can't Build Examples</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/New-Developer-Can-t-Build-Examples/m-p/176226#M6181</link>
      <description>&lt;BLOCKQUOTE&gt;didrik wrote:&lt;BR /&gt;I asked GS TS if there were API intro classes which would cover just the sorts of things that arise at the beginning, and are stumbling blocks that are real enthusiasm killers"&lt;/BLOCKQUOTE&gt;
The best approach is to follow the API requirements as closely as possible, e.g. use Microsoft Visual C++ .NET 2005 rather than Express. You should then find that you can open, build, and run the examples without any problems.</description>
      <pubDate>Sat, 26 Feb 2011 11:35:34 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/New-Developer-Can-t-Build-Examples/m-p/176226#M6181</guid>
      <dc:creator>Ralph Wessel</dc:creator>
      <dc:date>2011-02-26T11:35:34Z</dc:date>
    </item>
    <item>
      <title>Re: New Developer - Can't Build Examples</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/New-Developer-Can-t-Build-Examples/m-p/176227#M6182</link>
      <description>Hi Ralph, yes I agree it is always best to follow the requirements as closely as possible, but when the requirements call for a software package that is no longer available that gets a bit difficult. If GS want to encourage developers to create add-ons for their software, they need to at least update the developer environment to support software that is actually available.&lt;BR /&gt;
&lt;BR /&gt;
Since starting this thread, and after many hours of tinkering, I have infact managed to build and load the examples using Visual C++ Express 2008. This was a very convoluted process though with no real explanations anywhere. I am using Windows 7 64-bit which made the process even more difficult as express versions don't support 64-bit out of the box.&lt;BR /&gt;
&lt;BR /&gt;
I'll post the steps I took to get it to work for future reference. One thing to note, the process for using 64-bit in Express involves editing the registry so if you aren't confident with this I wouldn't suggest trying it.&lt;BR /&gt;
&lt;BR /&gt;
1. Download and install the correct API DevKit for your ArichCAD version&lt;BR /&gt;
&lt;BR /&gt;
2. Download and install Visual C++ Express 2008 and any available service packs&lt;BR /&gt;
&lt;BR /&gt;
3. Download and install Windows 7 SDK (I had to download the ISO file (~450MB) as the web installer would not install)&lt;BR /&gt;
&lt;BR /&gt;
4. Follow the instructions on the following site to add 64-bit compatibility to Visual C++ Express 2008&lt;BR /&gt;
&lt;A href="http://jenshuebel.wordpress.com/2009/02/12/visual-c-2008-express-edition-and-64-bit-targets/" target="_blank"&gt;&lt;/A&gt;&lt;S&gt;&lt;A href="http://jenshuebel.wordpress.com/2009/02/12/visual-c-2008-express-edition-and-64-bit-targets/" target="_blank"&gt;&lt;/A&gt;&lt;A href="&amp;lt;/s&amp;gt;&amp;lt;LINK_TEXT text=&amp;quot;http://jenshuebel.wordpress.com/2009/02 ... t-targets/&amp;quot;&amp;gt;http://jenshuebel.wordpress.com/2009/02/12/visual-c-2008-express-edition-and-64-bit-targets/&amp;lt;/LINK_TEXT&amp;gt;&amp;lt;e&amp;gt;"&gt;&lt;/A&gt;&lt;/S&gt;&lt;LINK_TEXT text="http://jenshuebel.wordpress.com/2009/02 ... t-targets/"&gt;http://jenshuebel.wordpress.com/2009/02/12/visual-c-2008-express-edition-and-64-bit-targets/&lt;/LINK_TEXT&gt;&lt;E&gt;&lt;/E&gt;&lt;BR /&gt;
&lt;BR /&gt;
5. Open an example project in C++. It will open the conversion wizard to convert the project to the newer version, just follow the prompts&lt;BR /&gt;
&lt;BR /&gt;
6. Open the project properties, then under Configuration Properties -&amp;gt; C/C++ -&amp;gt; General -&amp;gt; Additional Include Directories add the "Src" folder for the project you are trying to build.&lt;BR /&gt;
&lt;BR /&gt;
7. Select the desired build configuration (I have had success with Debug | x64) and build the project.&lt;BR /&gt;
&lt;BR /&gt;
8. Copy the generated apx file (in Debug or Release folder depending on your build configuration) into the ArchiCAD addons folder and launch ArchiCAD in demo mode. The addon should now be available in the addon manager. Alternatively you can manually load the addon from any folder you wish.&lt;BR /&gt;
&lt;BR /&gt;
I can't guarantee there won't be other little things you have to adjust but this has allowed me to build working examples and at least get started with the development process. I hope this can help some fellow beginners.</description>
      <pubDate>Wed, 02 Mar 2011 23:00:48 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/New-Developer-Can-t-Build-Examples/m-p/176227#M6182</guid>
      <dc:creator>Matt Balaam</dc:creator>
      <dc:date>2011-03-02T23:00:48Z</dc:date>
    </item>
    <item>
      <title>Re: New Developer - Can't Build Examples</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/New-Developer-Can-t-Build-Examples/m-p/176228#M6183</link>
      <description>&lt;BLOCKQUOTE&gt;mcjh_matt wrote:&lt;BR /&gt;when the requirements call for a software package that is no longer available that gets a bit difficult. If GS want to encourage developers to create add-ons for their software, they need to at least update the developer environment to support software that is actually available.&lt;/BLOCKQUOTE&gt;
Bear in mind that using a 2008 version rather than 2005 may lead to other problems during runtime, which can be very difficult to solve. Getting it to build is only the first hurdle.</description>
      <pubDate>Thu, 03 Mar 2011 09:24:13 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/New-Developer-Can-t-Build-Examples/m-p/176228#M6183</guid>
      <dc:creator>Ralph Wessel</dc:creator>
      <dc:date>2011-03-03T09:24:13Z</dc:date>
    </item>
    <item>
      <title>Re: New Developer - Can't Build Examples</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/New-Developer-Can-t-Build-Examples/m-p/176229#M6184</link>
      <description>I have the same problem when i am trying to comple the exemples. &lt;BR /&gt;
I have Visual Studio 2005 .net installed but i am thinking is a problem from de O.S. I am using W7 64 bits.&lt;BR /&gt;
&lt;BR /&gt;
Please help.</description>
      <pubDate>Tue, 05 Apr 2011 13:44:06 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/New-Developer-Can-t-Build-Examples/m-p/176229#M6184</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-04-05T13:44:06Z</dc:date>
    </item>
  </channel>
</rss>

