<?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[BCB: Ohne BDE auf eine DBase-Datei zugreifen - Wie?]]></title><description><![CDATA[<p>Hallo Zusammen,<br />
ich möchte ein kleines Programm basteln in dem ich auf DBase-Dateien zugreifen muß.<br />
Jetzt ist meine Frage: Geht das nur über BDE oder auch anders??</p>
<p>Ich möchte eigentlich z.B. nur angeben wo die DBase Datei steht und dann aus der die Daten auslesen.</p>
<p>Ist sowas möglich??</p>
<p>Im voraus schonmal Danke.<br />
Gruß</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/119456/bcb-ohne-bde-auf-eine-dbase-datei-zugreifen-wie</link><generator>RSS for Node</generator><lastBuildDate>Sat, 25 Jul 2026 05:14:25 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/119456.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 01 Sep 2005 11:03:06 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to BCB: Ohne BDE auf eine DBase-Datei zugreifen - Wie? on Thu, 01 Sep 2005 11:03:06 GMT]]></title><description><![CDATA[<p>Hallo Zusammen,<br />
ich möchte ein kleines Programm basteln in dem ich auf DBase-Dateien zugreifen muß.<br />
Jetzt ist meine Frage: Geht das nur über BDE oder auch anders??</p>
<p>Ich möchte eigentlich z.B. nur angeben wo die DBase Datei steht und dann aus der die Daten auslesen.</p>
<p>Ist sowas möglich??</p>
<p>Im voraus schonmal Danke.<br />
Gruß</p>
]]></description><link>https://www.c-plusplus.net/forum/post/862637</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/862637</guid><dc:creator><![CDATA[EPMS]]></dc:creator><pubDate>Thu, 01 Sep 2005 11:03:06 GMT</pubDate></item><item><title><![CDATA[Reply to BCB: Ohne BDE auf eine DBase-Datei zugreifen - Wie? on Thu, 01 Sep 2005 11:08:31 GMT]]></title><description><![CDATA[<p>siehe <a href="http://www.wotsit.org" rel="nofollow">www.wotsit.org</a> fuer die dateiformat-beschreibung. mit hilfe derer kannst du recht einfach einige funktionen implementieren und die dbase-datei von hand auslesen (ganz ohne bde).</p>
]]></description><link>https://www.c-plusplus.net/forum/post/862644</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/862644</guid><dc:creator><![CDATA[Sunday]]></dc:creator><pubDate>Thu, 01 Sep 2005 11:08:31 GMT</pubDate></item><item><title><![CDATA[Reply to BCB: Ohne BDE auf eine DBase-Datei zugreifen - Wie? on Thu, 01 Sep 2005 11:13:37 GMT]]></title><description><![CDATA[<p>die ADO-Komponenten brauchen keine BDE</p>
]]></description><link>https://www.c-plusplus.net/forum/post/862649</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/862649</guid><dc:creator><![CDATA[Linnea]]></dc:creator><pubDate>Thu, 01 Sep 2005 11:13:37 GMT</pubDate></item><item><title><![CDATA[Reply to BCB: Ohne BDE auf eine DBase-Datei zugreifen - Wie? on Thu, 01 Sep 2005 11:47:32 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-user plugin-mentions-a" href="https://www.c-plusplus.net/forum/uid/5990">@Linnea</a>,<br />
kennst du ein gutes Tutorial für ADO oder wo man etwas darüber nachlesen kann??</p>
<p>Gruß<br />
EPMS</p>
]]></description><link>https://www.c-plusplus.net/forum/post/862683</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/862683</guid><dc:creator><![CDATA[EPMS]]></dc:creator><pubDate>Thu, 01 Sep 2005 11:47:32 GMT</pubDate></item><item><title><![CDATA[Reply to BCB: Ohne BDE auf eine DBase-Datei zugreifen - Wie? on Thu, 01 Sep 2005 12:25:12 GMT]]></title><description><![CDATA[<p>nein, ich hab mir das meiste mit der Hilfe, Google und diesem Forum erarbeitet</p>
<p>hier mal ein Beispiel bei dem alles dynamisch erzeugt wird (Zugriff auf Datenbank über ODBC):</p>
<pre><code class="language-cpp">//-&gt;für select
  CoInitializeEx(NULL, COINIT_MULTITHREADED);
  TADOConnection *ACon1 = new TADOConnection(NULL);
  TADOCommand *AC = new TADOCommand(NULL);
  TADODataSet *AD = new TADODataSet(NULL);
  try
    {
    ACon1-&gt;ConnectionString = &quot;Provider=MSDASQL.1;Persist Security Info=False;User ID=Admin;Data Source=Test&quot;;
    ACon1-&gt;LoginPrompt = false;
    AC-&gt;Connection = ACon1;
    if (!ACon1-&gt;Connected) ACon1-&gt;Open();

    AC-&gt;CommandText = &quot;select Anzeige from ToolTip where TID = :Param1&quot;;
    AC-&gt;CommandType = cmdText;
    AC-&gt;Parameters-&gt;ParamByName(&quot;Param1&quot;)-&gt;Value = zahl;
    AD-&gt;Recordset = AC-&gt;Execute();

    Text = AD-&gt;FieldByName(&quot;Anzeige&quot;)-&gt;AsString;
    }
  __finally
    {
    ACon1-&gt;Close();
    delete AC;
    delete AD;
    delete ACon1;
    CoUninitialize();
    }

//für insert
    AC-&gt;CommandText = &quot;insert into tabelle (wert) values (:Param1)&quot;;
    AC-&gt;CommandType = cmdText;
    AC-&gt;Parameters-&gt;ParamByName(&quot;Param1&quot;)-&gt;Value = zahl;
    AC-&gt;Execute();
</code></pre>
<p>natürlich kann man die Komponenten auch aufs Formular legen und Grundeinstellungen wie ConnectionString, Connection und LoginPrompt zur Entwurfszeit einstellen. In dem Fall kann das CoInitialize und CoUninitialize in Konstruktor bzw. Destruktor der Anwendung platziert werden.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/862713</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/862713</guid><dc:creator><![CDATA[Linnea]]></dc:creator><pubDate>Thu, 01 Sep 2005 12:25:12 GMT</pubDate></item></channel></rss>