<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>'Exception in pRecordSet' Thread RSS Feed</title>
    <link>http://www.programmersheaven.com/</link>
    <description>Contains the latest posts from the thread 'Exception in pRecordSet' posted on the 'Database &amp; SQL' forum at Programmer's Heaven.</description>
    <language>en</language>
    <copyright>Copyright 2013 Programmers Heaven</copyright>
    <pubDate>Sat, 18 May 2013 15:19:43 -0700</pubDate>
    <lastBuildDate>Sat, 18 May 2013 15:19:43 -0700</lastBuildDate>
    <generator>Argotic Syndication Framework 2007.3.0.1, http://www.codeplex.com/Argotic</generator>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <ttl>360</ttl>
    <image>
      <url>http://www.programmersheaven.com/images/ph.gif</url>
      <title>Programmers Heaven</title>
      <link>http://www.programmersheaven.com/</link>
      <width>88</width>
      <height>31</height>
    </image>
    <item>
      <title>Exception in pRecordSet</title>
      <link>http://www.programmersheaven.com/mb/database/289252/289252/exception-in-precordset/</link>
      <description>pRecordSet-&amp;gt;Open(bstrQuery, &lt;br /&gt;
          _variant_t((IDispatch *)my_pDocAcad-&amp;gt;m_pConnection,true), adOpenStatic,&lt;br /&gt;
        adLockOptimistic, adCmdText);&lt;br /&gt;
&lt;br /&gt;
This line is throwing an exception. What could be wrong with it?&lt;br /&gt;
&lt;br /&gt;
where my_pDocAcad is a pointer to GetDocument of MyAppDoc class. m_pConnection is the connection pointer defined in the MyAppDoc class.&lt;br /&gt;
bstrQuery is the SQL command&lt;br /&gt;
&lt;br /&gt;
The open() fxn has the connection string of a provider Jet 4.0 , and the long option is a adModeUnknown.&lt;br /&gt;
hr = m_pConnection-&amp;gt;open(L"Provider='......;Data source=c:.....;'&lt;br /&gt;
(_bstr_t ) L"(""),&lt;br /&gt;
(_bstr_t ) L"(""),&lt;br /&gt;
adModeUnknown)&lt;br /&gt;
do u think the adModeUnknown could cause it to throw exception.&lt;br /&gt;
&lt;br /&gt;
why is it throwing exception.&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/database/289252/289252/exception-in-precordset/</guid>
      <pubDate>Thu, 20 Jan 2005 07:08:07 -0700</pubDate>
      <category>Database &amp; SQL</category>
    </item>
  </channel>
</rss>