<?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[utilscls.h &#x27;isbound()&#x27; Meldung]]></title><description><![CDATA[<p>Bei folgendem Code bekomm ich die im Bild dargestellte Meldung.</p>
<pre><code class="language-cpp">void __fastcall TForm1::KameraVerarbeitenClick(TObject *Sender)
{
  Excel e = Excel(&quot;ERROR&quot;,&quot;ERROR&quot;,false,true);
  Preisliste l;
  int sel = Liste-&gt;Row;
  AnsiString id;

  for( int i = 0; i &lt; Kameras.size(); i ++ )
  {
    if( Liste-&gt;Cells[1][sel].AnsiCompare(Kameras[i].Linse) == 0 )
    {
      if(Liste-&gt;Cells[2][sel].AnsiCompare(&quot;Highspeed Decoder&quot;) == 0)
      {
        id = Kameras[i].ID_HighspeedDecoder;
      }else{
        id = Kameras[i].ID_StandardDecoder;
      }
    }
  }

  for( int i = 0; i &lt; Preise.Preis.size(); i ++ )
  {
    if( Preise.IDs[i].Pos(id) != 0 )
    {
      l.Nummer.push_back(Preise.Nummer[i]);
      l.Beschreibung.push_back(Preise.Beschreibung[i]);
      l.Preis.push_back(Preise.Preis[i]);

      FormVerarbeiten-&gt;add(Preise.Nummer[i],Preise.Beschreibung[i],Preise.Preis[i]);
    }
  }

  //e.savePreislisteToFile(l,getProgDir()+&quot;Kamera_list.xls&quot;);
  FormVerarbeiten-&gt;ShowModal();
}
//---------------------------------------------------------------------------
</code></pre>
<pre><code class="language-cpp">struct Kamera
{
    int         minThrow;
    int         maxThrow;
    int         werteAnzahl;
    AnsiString  Linse;
    AnsiString  ExcelDatei;
    bool        StandardDecoder;
    bool        HighspeedDecoder;
    AnsiString         ID_StandardDecoder;
    AnsiString         ID_HighspeedDecoder;
    std::vector &lt;int&gt;    Throw;
    std::vector &lt;double&gt; Resolution;
    std::vector &lt;double&gt; Coverage;
    std::vector &lt;double&gt; MinElementPreferred_015;
    std::vector &lt;double&gt; MinElementAbsolute_015;
    std::vector &lt;double&gt; MinElementPreferred_1545;
    std::vector &lt;double&gt; MinElementAbsolute_1545;
    std::vector &lt;double&gt; MaxBeltSpeed_StandardDecoder;
    std::vector &lt;double&gt; MaxBeltSpeed_HighspeedDecoder;

    int getPositionByThrow(int thr)
    {
      for(int i = 0; i &lt; werteAnzahl; i ++)
      {
        if( Throw[i] == thr ) { return i; }
      }

    return -1;
    }
};
</code></pre>
<pre><code class="language-cpp">struct Preisliste
{
  AnsiString Pfad;
  std::vector &lt;AnsiString&gt; Nummer;
  std::vector &lt;AnsiString&gt; Beschreibung;
  std::vector &lt;AnsiString&gt; Preis;
  std::vector &lt;AnsiString&gt; IDs;
};
</code></pre>
<pre><code class="language-cpp">Excel::Excel(AnsiString Mappe_Pfad, AnsiString excelName, bool check, bool ignore)
{
     if( !ignore )
     {
       //if( !testeTabelle(Mappe_Pfad) ) { throw(&quot;Die Excel-Datei ist fehlerhaft!&quot;); }

       Excel_Var = Variant::CreateObject(&quot;Excel.Application&quot;);
       Excel_Var.OlePropertyGet(&quot;ActiveWorkBook&quot;);
       Excel_Var.OlePropertyGet(&quot;WorkBooks&quot;).OleFunction(&quot;Open&quot;,Mappe_Pfad.c_str());

       Sheet=Excel_Var.OlePropertyGet(&quot;ActiveSheet&quot;);

       minThrow = Sheet.OlePropertyGet(&quot;Cells&quot;,3,2).OlePropertyGet(&quot;Value&quot;);
       maxThrow = Sheet.OlePropertyGet(&quot;Cells&quot;,4,2).OlePropertyGet(&quot;Value&quot;);
       gruppe   = Sheet.OlePropertyGet(&quot;Cells&quot;,2,2).OlePropertyGet(&quot;Value&quot;);

       if( check &amp;&amp; gruppe == 0 ) { if( !checkTabelle() ) { throw(&quot;Die Excel-Datei ist fehlerhaft!&quot;); } }
       else if( check &amp;&amp; gruppe == 1 ) { if( !checkPreisTabelle() ) { throw(&quot;Die Excel-Datei ist fehlerhaft!&quot;); } }

       if( gruppe == 0 )
       {
         bool weiter = true;
         for(int i = 9; weiter; i ++)
         {
           AnsiString d = Sheet.OlePropertyGet(&quot;Cells&quot;,i,1).OlePropertyGet(&quot;Value&quot;);
           if( d.Length() == 0 )
           {
             werteAnzahl = i-9;
             weiter = false;
           }
         }
       }
     }
     excelDatei = excelName;
}
//---------------------------------------------------------------------------
</code></pre>
<p><a href="http://img104.imageshack.us/img104/8458/fehlerbg0.jpg" rel="nofollow">http://img104.imageshack.us/img104/8458/fehlerbg0.jpg</a></p>
<p>thx</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/188965/utilscls-h-isbound-meldung</link><generator>RSS for Node</generator><lastBuildDate>Mon, 17 Aug 2026 02:57:25 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/188965.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 06 Aug 2007 23:50:51 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to utilscls.h &#x27;isbound()&#x27; Meldung on Tue, 07 Aug 2007 01:05:14 GMT]]></title><description><![CDATA[<p>Bei folgendem Code bekomm ich die im Bild dargestellte Meldung.</p>
<pre><code class="language-cpp">void __fastcall TForm1::KameraVerarbeitenClick(TObject *Sender)
{
  Excel e = Excel(&quot;ERROR&quot;,&quot;ERROR&quot;,false,true);
  Preisliste l;
  int sel = Liste-&gt;Row;
  AnsiString id;

  for( int i = 0; i &lt; Kameras.size(); i ++ )
  {
    if( Liste-&gt;Cells[1][sel].AnsiCompare(Kameras[i].Linse) == 0 )
    {
      if(Liste-&gt;Cells[2][sel].AnsiCompare(&quot;Highspeed Decoder&quot;) == 0)
      {
        id = Kameras[i].ID_HighspeedDecoder;
      }else{
        id = Kameras[i].ID_StandardDecoder;
      }
    }
  }

  for( int i = 0; i &lt; Preise.Preis.size(); i ++ )
  {
    if( Preise.IDs[i].Pos(id) != 0 )
    {
      l.Nummer.push_back(Preise.Nummer[i]);
      l.Beschreibung.push_back(Preise.Beschreibung[i]);
      l.Preis.push_back(Preise.Preis[i]);

      FormVerarbeiten-&gt;add(Preise.Nummer[i],Preise.Beschreibung[i],Preise.Preis[i]);
    }
  }

  //e.savePreislisteToFile(l,getProgDir()+&quot;Kamera_list.xls&quot;);
  FormVerarbeiten-&gt;ShowModal();
}
//---------------------------------------------------------------------------
</code></pre>
<pre><code class="language-cpp">struct Kamera
{
    int         minThrow;
    int         maxThrow;
    int         werteAnzahl;
    AnsiString  Linse;
    AnsiString  ExcelDatei;
    bool        StandardDecoder;
    bool        HighspeedDecoder;
    AnsiString         ID_StandardDecoder;
    AnsiString         ID_HighspeedDecoder;
    std::vector &lt;int&gt;    Throw;
    std::vector &lt;double&gt; Resolution;
    std::vector &lt;double&gt; Coverage;
    std::vector &lt;double&gt; MinElementPreferred_015;
    std::vector &lt;double&gt; MinElementAbsolute_015;
    std::vector &lt;double&gt; MinElementPreferred_1545;
    std::vector &lt;double&gt; MinElementAbsolute_1545;
    std::vector &lt;double&gt; MaxBeltSpeed_StandardDecoder;
    std::vector &lt;double&gt; MaxBeltSpeed_HighspeedDecoder;

    int getPositionByThrow(int thr)
    {
      for(int i = 0; i &lt; werteAnzahl; i ++)
      {
        if( Throw[i] == thr ) { return i; }
      }

    return -1;
    }
};
</code></pre>
<pre><code class="language-cpp">struct Preisliste
{
  AnsiString Pfad;
  std::vector &lt;AnsiString&gt; Nummer;
  std::vector &lt;AnsiString&gt; Beschreibung;
  std::vector &lt;AnsiString&gt; Preis;
  std::vector &lt;AnsiString&gt; IDs;
};
</code></pre>
<pre><code class="language-cpp">Excel::Excel(AnsiString Mappe_Pfad, AnsiString excelName, bool check, bool ignore)
{
     if( !ignore )
     {
       //if( !testeTabelle(Mappe_Pfad) ) { throw(&quot;Die Excel-Datei ist fehlerhaft!&quot;); }

       Excel_Var = Variant::CreateObject(&quot;Excel.Application&quot;);
       Excel_Var.OlePropertyGet(&quot;ActiveWorkBook&quot;);
       Excel_Var.OlePropertyGet(&quot;WorkBooks&quot;).OleFunction(&quot;Open&quot;,Mappe_Pfad.c_str());

       Sheet=Excel_Var.OlePropertyGet(&quot;ActiveSheet&quot;);

       minThrow = Sheet.OlePropertyGet(&quot;Cells&quot;,3,2).OlePropertyGet(&quot;Value&quot;);
       maxThrow = Sheet.OlePropertyGet(&quot;Cells&quot;,4,2).OlePropertyGet(&quot;Value&quot;);
       gruppe   = Sheet.OlePropertyGet(&quot;Cells&quot;,2,2).OlePropertyGet(&quot;Value&quot;);

       if( check &amp;&amp; gruppe == 0 ) { if( !checkTabelle() ) { throw(&quot;Die Excel-Datei ist fehlerhaft!&quot;); } }
       else if( check &amp;&amp; gruppe == 1 ) { if( !checkPreisTabelle() ) { throw(&quot;Die Excel-Datei ist fehlerhaft!&quot;); } }

       if( gruppe == 0 )
       {
         bool weiter = true;
         for(int i = 9; weiter; i ++)
         {
           AnsiString d = Sheet.OlePropertyGet(&quot;Cells&quot;,i,1).OlePropertyGet(&quot;Value&quot;);
           if( d.Length() == 0 )
           {
             werteAnzahl = i-9;
             weiter = false;
           }
         }
       }
     }
     excelDatei = excelName;
}
//---------------------------------------------------------------------------
</code></pre>
<p><a href="http://img104.imageshack.us/img104/8458/fehlerbg0.jpg" rel="nofollow">http://img104.imageshack.us/img104/8458/fehlerbg0.jpg</a></p>
<p>thx</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1339862</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1339862</guid><dc:creator><![CDATA[Dragonfire]]></dc:creator><pubDate>Tue, 07 Aug 2007 01:05:14 GMT</pubDate></item><item><title><![CDATA[Reply to utilscls.h &#x27;isbound()&#x27; Meldung on Tue, 07 Aug 2007 07:54:04 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>Offenbar eine Fehlermeldung wenn ein Index außerhalb des zulässigen Bereichs ist.<br />
Du must mit dem <a href="http://www.junix.ch/bcb/help/debug.html" rel="nofollow">Debugger</a> den Verlauf deines Programmes zur Laufzeit verfolgen und wichtige Werte (insbesondere Indexe) verfolgen.</p>
<p>bis bald<br />
akari</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1339920</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1339920</guid><dc:creator><![CDATA[akari]]></dc:creator><pubDate>Tue, 07 Aug 2007 07:54:04 GMT</pubDate></item><item><title><![CDATA[Reply to utilscls.h &#x27;isbound()&#x27; Meldung on Tue, 07 Aug 2007 10:50:49 GMT]]></title><description><![CDATA[<p>Es liegt hier dran, nur warum?</p>
<pre><code class="language-cpp">Excel e = Excel(&quot;ERROR&quot;,&quot;ERROR&quot;,false,true);
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1340052</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1340052</guid><dc:creator><![CDATA[Dragonfire]]></dc:creator><pubDate>Tue, 07 Aug 2007 10:50:49 GMT</pubDate></item></channel></rss>