<?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 DLL-Entrypoint-ArchiCAD10 in a MFC-Application in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/DLL-Entrypoint-ArchiCAD10-in-a-MFC-Application/m-p/66954#M7251</link>
    <description>&lt;DIV class="actalk-migrated-content"&gt;I have the following problem:&lt;BR /&gt;In the version 8 and 9 of ArchiCAD I have the api entry point of our mfc-application as follows:&lt;BR /&gt;BOOL APIENTRY DllMainAttach (HANDLE hModule) ;&lt;BR /&gt;BOOL APIENTRY DllMainDetach (void) ; &lt;BR /&gt;BOOL CMFCApp::InitInstance()&lt;BR /&gt;{&lt;BR /&gt;DllMainAttach (m_hInstance);&lt;BR /&gt;return CWinApp::InitInstance();&lt;BR /&gt;}&lt;BR /&gt;int CMFCApp::ExitInstance()&lt;BR /&gt;{&lt;BR /&gt;DllMainDetach ();&lt;BR /&gt;return CWinApp::ExitInstance();&lt;BR /&gt;}&lt;BR /&gt;which are defined in the files ACAPlib_dll.cpp as follows:&lt;BR /&gt;&lt;BR /&gt;BOOL APIENTRY DllMainAttach (HANDLE hModule)&lt;BR /&gt;{&lt;BR /&gt;gOwnModule = hModule;&lt;BR /&gt;gOwnResModule = (GSResModule) gOwnModule;&lt;BR /&gt;return TRUE;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;BOOL APIENTRY DllMainDetach (void)&lt;BR /&gt;{&lt;BR /&gt;if (gOwnResModule != NULL &amp;amp;&amp;amp; gFunctionTable != NULL &amp;amp;&amp;amp; gFunctionTable-&amp;gt;closeownresfile != NULL) {&lt;BR /&gt;gFunctionTable-&amp;gt;closeownresfile (gOwnResModule);&lt;BR /&gt;}&lt;BR /&gt;gOwnResModule = NULL;&lt;BR /&gt;gOwnModule = NULL;&lt;BR /&gt;gOwnClientID = NULL;&lt;BR /&gt;if (gFunctionTable != NULL) {&lt;BR /&gt;delete gFunctionTable;&lt;BR /&gt;gFunctionTable = NULL;&lt;BR /&gt;}&lt;BR /&gt;return TRUE;&lt;BR /&gt;} &lt;BR /&gt;&lt;BR /&gt;This entry point does not exist any more in API Development Kit 10.20. There is no explanation about it. How can i overcome this problem? &lt;BR /&gt;Thanks in advance,&lt;BR /&gt;Celepoglu&lt;/DIV&gt;</description>
    <pubDate>Mon, 07 Aug 2023 08:59:54 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-08-07T08:59:54Z</dc:date>
    <item>
      <title>DLL-Entrypoint-ArchiCAD10 in a MFC-Application</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/DLL-Entrypoint-ArchiCAD10-in-a-MFC-Application/m-p/66954#M7251</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;I have the following problem:&lt;BR /&gt;In the version 8 and 9 of ArchiCAD I have the api entry point of our mfc-application as follows:&lt;BR /&gt;BOOL APIENTRY DllMainAttach (HANDLE hModule) ;&lt;BR /&gt;BOOL APIENTRY DllMainDetach (void) ; &lt;BR /&gt;BOOL CMFCApp::InitInstance()&lt;BR /&gt;{&lt;BR /&gt;DllMainAttach (m_hInstance);&lt;BR /&gt;return CWinApp::InitInstance();&lt;BR /&gt;}&lt;BR /&gt;int CMFCApp::ExitInstance()&lt;BR /&gt;{&lt;BR /&gt;DllMainDetach ();&lt;BR /&gt;return CWinApp::ExitInstance();&lt;BR /&gt;}&lt;BR /&gt;which are defined in the files ACAPlib_dll.cpp as follows:&lt;BR /&gt;&lt;BR /&gt;BOOL APIENTRY DllMainAttach (HANDLE hModule)&lt;BR /&gt;{&lt;BR /&gt;gOwnModule = hModule;&lt;BR /&gt;gOwnResModule = (GSResModule) gOwnModule;&lt;BR /&gt;return TRUE;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;BOOL APIENTRY DllMainDetach (void)&lt;BR /&gt;{&lt;BR /&gt;if (gOwnResModule != NULL &amp;amp;&amp;amp; gFunctionTable != NULL &amp;amp;&amp;amp; gFunctionTable-&amp;gt;closeownresfile != NULL) {&lt;BR /&gt;gFunctionTable-&amp;gt;closeownresfile (gOwnResModule);&lt;BR /&gt;}&lt;BR /&gt;gOwnResModule = NULL;&lt;BR /&gt;gOwnModule = NULL;&lt;BR /&gt;gOwnClientID = NULL;&lt;BR /&gt;if (gFunctionTable != NULL) {&lt;BR /&gt;delete gFunctionTable;&lt;BR /&gt;gFunctionTable = NULL;&lt;BR /&gt;}&lt;BR /&gt;return TRUE;&lt;BR /&gt;} &lt;BR /&gt;&lt;BR /&gt;This entry point does not exist any more in API Development Kit 10.20. There is no explanation about it. How can i overcome this problem? &lt;BR /&gt;Thanks in advance,&lt;BR /&gt;Celepoglu&lt;/DIV&gt;</description>
      <pubDate>Mon, 07 Aug 2023 08:59:54 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/DLL-Entrypoint-ArchiCAD10-in-a-MFC-Application/m-p/66954#M7251</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-08-07T08:59:54Z</dc:date>
    </item>
  </channel>
</rss>

