<?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 Autocad2004 and CDaoDatabase!! in ObjectARX Forum</title>
    <link>https://forums.autodesk.com/t5/objectarx-forum/autocad2004-and-cdaodatabase/m-p/320077#M36013</link>
    <description>Hello,&lt;BR /&gt;
Iam converting our 2002 arx application to 2004.&lt;BR /&gt;
&lt;BR /&gt;
I use the following code to connect to a CDaoDatabase-&lt;BR /&gt;
AfxGetModuleState()-&amp;gt;m_dwVersion = 0x0601;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
pDatabase-&amp;gt;Open(PATH,false,false,_T(""));&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Whenever I close Autocad2004,  I get an Unhandled Access Exception.&lt;BR /&gt;
I dont get the error in 2002.&lt;BR /&gt;
&lt;BR /&gt;
Thanks a lot.&lt;BR /&gt;
jay</description>
    <pubDate>Thu, 22 May 2003 06:04:36 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2003-05-22T06:04:36Z</dc:date>
    <item>
      <title>Autocad2004 and CDaoDatabase!!</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/autocad2004-and-cdaodatabase/m-p/320077#M36013</link>
      <description>Hello,&lt;BR /&gt;
Iam converting our 2002 arx application to 2004.&lt;BR /&gt;
&lt;BR /&gt;
I use the following code to connect to a CDaoDatabase-&lt;BR /&gt;
AfxGetModuleState()-&amp;gt;m_dwVersion = 0x0601;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
pDatabase-&amp;gt;Open(PATH,false,false,_T(""));&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Whenever I close Autocad2004,  I get an Unhandled Access Exception.&lt;BR /&gt;
I dont get the error in 2002.&lt;BR /&gt;
&lt;BR /&gt;
Thanks a lot.&lt;BR /&gt;
jay</description>
      <pubDate>Thu, 22 May 2003 06:04:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/autocad2004-and-cdaodatabase/m-p/320077#M36013</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2003-05-22T06:04:36Z</dc:date>
    </item>
    <item>
      <title>Re: Autocad2004 and CDaoDatabase!!</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/autocad2004-and-cdaodatabase/m-p/320078#M36014</link>
      <description>On Thu, 22 May 2003 07:04:36 -0700, Jay Balapa wrote:&lt;BR /&gt;
&lt;BR /&gt;
&amp;gt; Hello,&lt;BR /&gt;
&amp;gt; Iam converting our 2002 arx application to 2004.&lt;BR /&gt;
&amp;gt; I use the following code to connect to a CDaoDatabase-&lt;BR /&gt;
&amp;gt; AfxGetModuleState()-&amp;gt;m_dwVersion = 0x0601;&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; pDatabase-&amp;gt;Open(PATH,false,false,_T(""));&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; Whenever I close Autocad2004,  I get an Unhandled Access Exception.&lt;BR /&gt;
&amp;gt; I dont get the error in 2002.&lt;BR /&gt;
&lt;BR /&gt;
AFAIK, Microsoft is no longer supporting DAO in VC++ 7.0&lt;BR /&gt;
&lt;BR /&gt;
I have given up and are now moving all DAO code into ADO. &lt;BR /&gt;
&lt;BR /&gt;
// Anders</description>
      <pubDate>Fri, 23 May 2003 03:05:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/autocad2004-and-cdaodatabase/m-p/320078#M36014</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2003-05-23T03:05:54Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/autocad2004-and-cdaodatabase/m-p/320079#M36015</link>
      <description>Anders Eriksson írta:&lt;BR /&gt;
&amp;gt; On Thu, 22 May 2003 07:04:36 -0700, Jay Balapa wrote:&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt;&amp;gt;Hello,&lt;BR /&gt;
&amp;gt;&amp;gt;Iam converting our 2002 arx application to 2004.&lt;BR /&gt;
&amp;gt;&amp;gt;I use the following code to connect to a CDaoDatabase-&lt;BR /&gt;
&amp;gt;&amp;gt;AfxGetModuleState()-&amp;gt;m_dwVersion = 0x0601;&lt;BR /&gt;
&amp;gt;&amp;gt;&lt;BR /&gt;
&amp;gt;&amp;gt;pDatabase-&amp;gt;Open(PATH,false,false,_T(""));&lt;BR /&gt;
&amp;gt;&amp;gt;&lt;BR /&gt;
&amp;gt;&amp;gt;Whenever I close Autocad2004,  I get an Unhandled Access Exception.&lt;BR /&gt;
&amp;gt;&amp;gt;I dont get the error in 2002.&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; AFAIK, Microsoft is no longer supporting DAO in VC++ 7.0&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; I have given up and are now moving all DAO code into ADO. &lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; // Anders&lt;BR /&gt;
Right decision.</description>
      <pubDate>Fri, 23 May 2003 04:13:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/autocad2004-and-cdaodatabase/m-p/320079#M36015</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2003-05-23T04:13:29Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/autocad2004-and-cdaodatabase/m-p/320080#M36016</link>
      <description>We are trying to do the same.&lt;BR /&gt;
We are just trying to roll out a quick version of current 2002 product.&lt;BR /&gt;
Then create a Sql/access version of it.&lt;BR /&gt;
&lt;BR /&gt;
I think there needs to some kind of setting for me to set to, not get that&lt;BR /&gt;
exception.&lt;BR /&gt;
&lt;BR /&gt;
Thanks.&lt;BR /&gt;
jay&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
"Anders Eriksson" &lt;ANDERS.ERIKSSON&gt; wrote in message&lt;BR /&gt;
news:hpaovy8l3uff.dlg@morateknikutveckling.se...&lt;BR /&gt;
&amp;gt; On Thu, 22 May 2003 07:04:36 -0700, Jay Balapa wrote:&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; Hello,&lt;BR /&gt;
&amp;gt; &amp;gt; Iam converting our 2002 arx application to 2004.&lt;BR /&gt;
&amp;gt; &amp;gt; I use the following code to connect to a CDaoDatabase-&lt;BR /&gt;
&amp;gt; &amp;gt; AfxGetModuleState()-&amp;gt;m_dwVersion = 0x0601;&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; pDatabase-&amp;gt;Open(PATH,false,false,_T(""));&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; Whenever I close Autocad2004,  I get an Unhandled Access Exception.&lt;BR /&gt;
&amp;gt; &amp;gt; I dont get the error in 2002.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; AFAIK, Microsoft is no longer supporting DAO in VC++ 7.0&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; I have given up and are now moving all DAO code into ADO.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; // Anders&lt;/ANDERS.ERIKSSON&gt;</description>
      <pubDate>Fri, 23 May 2003 05:56:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/autocad2004-and-cdaodatabase/m-p/320080#M36016</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2003-05-23T05:56:40Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/autocad2004-and-cdaodatabase/m-p/320081#M36017</link>
      <description>Hi Jay,&lt;BR /&gt;
I've got the same problem.&lt;BR /&gt;
Have you found a solution so far?&lt;BR /&gt;
Thanks, Petra</description>
      <pubDate>Fri, 01 Aug 2003 03:15:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/autocad2004-and-cdaodatabase/m-p/320081#M36017</guid>
      <dc:creator>pfluegge30167</dc:creator>
      <dc:date>2003-08-01T03:15:19Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/autocad2004-and-cdaodatabase/m-p/320082#M36018</link>
      <description>&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;Hi pfluegge,&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;I got it to work.&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;There is a article&amp;nbsp; on CDaoDatabase in ADN &lt;BR /&gt;
which would help you with this.&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;As far I see it, you need to delete the daopointer, &lt;BR /&gt;
try puttin this code in your unload module of your arx app.&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;BR /&gt;
&lt;P&gt;AfxDaoTerm(); // Un-initialize DAO here...&lt;/P&gt;&lt;BR /&gt;
&lt;P&gt;_AFX_DAO_STATE*&amp;amp; pDaoState = AfxGetModuleState()-&amp;gt;m_pDaoState;&lt;/P&gt;&lt;BR /&gt;
&lt;P&gt;delete (CNoTrackObject*)pDaoState; //destructor virtual&lt;/P&gt;&lt;BR /&gt;
&lt;P&gt;pDaoState = NULL;&lt;/P&gt;&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;
&lt;P&gt;&lt;FONT face="Arial"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;
&lt;P&gt;&lt;FONT face="Arial"&gt;jay&lt;/FONT&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;&lt;BR /&gt;
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px"&amp;gt;&lt;BR /&gt;
  &lt;DIV&gt;"pfluegge" &amp;lt;&lt;A&gt;&lt;BR /&gt;
  href="mailto:p.fluegge@itwh.de"&amp;gt;p.fluegge@itwh.de&lt;/A&gt;&amp;gt; wrote in message &lt;A&gt;&lt;BR /&gt;
  href="news:f16652e.3@WebX.maYIadrTaRb"&amp;gt;news:f16652e.3@WebX.maYIadrTaRb&lt;/A&gt;...&lt;/DIV&gt;Hi &lt;BR /&gt;
  Jay, &lt;BR /&gt;I've got the same problem. &lt;BR /&gt;Have you found a solution so far? &lt;BR /&gt;
  &lt;BR /&gt;Thanks, Petra&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Mon, 04 Aug 2003 07:08:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/autocad2004-and-cdaodatabase/m-p/320082#M36018</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2003-08-04T07:08:27Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/autocad2004-and-cdaodatabase/m-p/320083#M36019</link>
      <description>Thanks a lot.</description>
      <pubDate>Tue, 05 Aug 2003 06:58:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/autocad2004-and-cdaodatabase/m-p/320083#M36019</guid>
      <dc:creator>pfluegge30167</dc:creator>
      <dc:date>2003-08-05T06:58:37Z</dc:date>
    </item>
  </channel>
</rss>

