<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Excel 97 VS 2000]]></title><description><![CDATA[<p>hi,<br />
hab nen Cpp to Excel Interface gemacht. Das ganze war für Excel 97 konzepiert. Jetzt haben die bei uns in der Firma auf einigen Rechnern Excel 2000 und da gibts problehme. Eigentlich hab ich schon eine versionsprüfung, doch leider gibts dannach immernoch fehler. Nun zu meiner Frage.<br />
1. ist Excel 2k/XP abwärtskompatiebel<br />
2. Wenn nein wie mach ich das.</p>
<p>die Prüfung:</p>
<pre><code class="language-cpp">/*
  Excel.Application.8 // MS Excel '97
  Excel.Application.9 // MS Excel 2000
  Excel.Application.10 // MS Excel XP
  */
  try
  {
    try
    {
      m_vExcel = CreateOleObject(&quot;Excel.Application.8&quot;);
    }
    catch(...)
    {
      try
      {
        m_vExcel = CreateOleObject(&quot;Excel.Application.9&quot;);
      }
      catch(...)
      {
        try
        {
          m_vExcel = CreateOleObject(&quot;Excel.Application.10&quot;);
        }
        catch(...)
        {
           m_vExcel = NULL;
        }
      }
    }
</code></pre>
<p>Die genaue Fehlermeldung lautet:</p>
<blockquote>
<p>Im projekt Database.exe ist eine Exception der Klasse EVariantTypeCastError aufgetreten. Meldung: 'Ungültige Variant-Typumwandlung'</p>
</blockquote>
]]></description><link>https://www.c-plusplus.net/forum/topic/80994/excel-97-vs-2000</link><generator>RSS for Node</generator><lastBuildDate>Tue, 30 Jun 2026 17:28:21 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/80994.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 27 Jul 2004 06:58:04 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Excel 97 VS 2000 on Tue, 27 Jul 2004 07:15:57 GMT]]></title><description><![CDATA[<p>hi,<br />
hab nen Cpp to Excel Interface gemacht. Das ganze war für Excel 97 konzepiert. Jetzt haben die bei uns in der Firma auf einigen Rechnern Excel 2000 und da gibts problehme. Eigentlich hab ich schon eine versionsprüfung, doch leider gibts dannach immernoch fehler. Nun zu meiner Frage.<br />
1. ist Excel 2k/XP abwärtskompatiebel<br />
2. Wenn nein wie mach ich das.</p>
<p>die Prüfung:</p>
<pre><code class="language-cpp">/*
  Excel.Application.8 // MS Excel '97
  Excel.Application.9 // MS Excel 2000
  Excel.Application.10 // MS Excel XP
  */
  try
  {
    try
    {
      m_vExcel = CreateOleObject(&quot;Excel.Application.8&quot;);
    }
    catch(...)
    {
      try
      {
        m_vExcel = CreateOleObject(&quot;Excel.Application.9&quot;);
      }
      catch(...)
      {
        try
        {
          m_vExcel = CreateOleObject(&quot;Excel.Application.10&quot;);
        }
        catch(...)
        {
           m_vExcel = NULL;
        }
      }
    }
</code></pre>
<p>Die genaue Fehlermeldung lautet:</p>
<blockquote>
<p>Im projekt Database.exe ist eine Exception der Klasse EVariantTypeCastError aufgetreten. Meldung: 'Ungültige Variant-Typumwandlung'</p>
</blockquote>
]]></description><link>https://www.c-plusplus.net/forum/post/569110</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/569110</guid><dc:creator><![CDATA[LordPsycho]]></dc:creator><pubDate>Tue, 27 Jul 2004 07:15:57 GMT</pubDate></item><item><title><![CDATA[Reply to Excel 97 VS 2000 on Tue, 27 Jul 2004 16:41:01 GMT]]></title><description><![CDATA[<p>Ich habe bisher keine Kompatibilitätsprobleme gehabt bei der Automatisierung von Excel97 bzw. -2K.<br />
Ich hab' dabei immer das Interface von Excel97 benutzt. Wenn du bei Excel.Application.8 bleibst, sollte es bei allen neueren Versionen auch klappen, also kannst du dir aus meiner Sicht die try()s sparen (ausser, du willst Spezifika der einzelnen Versionen nutzen).</p>
]]></description><link>https://www.c-plusplus.net/forum/post/569692</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/569692</guid><dc:creator><![CDATA[KrautFritz]]></dc:creator><pubDate>Tue, 27 Jul 2004 16:41:01 GMT</pubDate></item><item><title><![CDATA[Reply to Excel 97 VS 2000 on Wed, 28 Jul 2004 06:40:40 GMT]]></title><description><![CDATA[<p>hab den Fehler inzwischen behoben.</p>
<p>@KrautFritz wenn ich die Spezifikatzion &quot;Excel.Application.8&quot; benutze gebt es ne Fehlermeldung fals Excel 97 nicht installiert ist. hab das jetzt so gemacht das ich die acht weglasse und damit die Version nicht beachte. &quot;Excel.Application&quot; hat den vorteil das jede Excel version angesprochen wird, und da ich das interface für Excel 97 gemacht habe kann ich sicher gehen das die neueren Versionen das unterstützen <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /></p>
<p>mfg Ich</p>
]]></description><link>https://www.c-plusplus.net/forum/post/570029</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/570029</guid><dc:creator><![CDATA[LordPsycho]]></dc:creator><pubDate>Wed, 28 Jul 2004 06:40:40 GMT</pubDate></item></channel></rss>