<?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[Keine Verbindung zur Datenbank]]></title><description><![CDATA[<p>Habe trotz einiger Änderungen keine Verbindung zur Datenbank. Wieso?<br />
Problem an sich: Es werden keine Daten der Datenbank in der Listbox angezeigt.<br />
Compiler sagt: Datenbank ist nicht selektiert.</p>
<p>Quellcode:</p>
<p>// Le Constructeur</p>
<p>// Verweis auf andere Klasse CAntwort (anstatt CWnd)-&gt; funktioniert<br />
// include-Dateien auch vorhanden/eingebunden<br />
CAntwortNeu::CAntwortNeu(CAntwort* pParent /<em>=NULL</em>/, MySQLConnection myDB)<br />
: CDialog(CAntwortNeu::IDD, pParent)<br />
{<br />
//{{AFX_DATA_INIT(CAntwortNeu)<br />
m_DB = myDB;<br />
m_ant = pParent;<br />
m_strManDB = _T(&quot;&quot;);<br />
m_strEditManuell = _T(&quot;&quot;);<br />
//}}AFX_DATA_INIT<br />
}<br />
void blabla{<br />
m_ant-&gt;m_AntwortCon.connect(true);</p>
<p>strQuery.Format(&quot;SELECT id FROM antwort&quot;);<br />
if (!m_NeuCon.execute(strQuery))<br />
{<br />
m_NeuCon.disconnect();<br />
return ;<br />
} // if Ende</p>
<p>for (int i=0; i&lt;m_NeuCon.getNofRows(); i++) {<br />
row = m_NeuCon.getRow(i);<br />
m_lstManDB.AddString(row[0]);<br />
}<br />
}</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/173013/keine-verbindung-zur-datenbank</link><generator>RSS for Node</generator><lastBuildDate>Sun, 26 Apr 2026 05:17:30 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/173013.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 10 Feb 2007 18:38:30 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Keine Verbindung zur Datenbank on Sat, 10 Feb 2007 18:38:30 GMT]]></title><description><![CDATA[<p>Habe trotz einiger Änderungen keine Verbindung zur Datenbank. Wieso?<br />
Problem an sich: Es werden keine Daten der Datenbank in der Listbox angezeigt.<br />
Compiler sagt: Datenbank ist nicht selektiert.</p>
<p>Quellcode:</p>
<p>// Le Constructeur</p>
<p>// Verweis auf andere Klasse CAntwort (anstatt CWnd)-&gt; funktioniert<br />
// include-Dateien auch vorhanden/eingebunden<br />
CAntwortNeu::CAntwortNeu(CAntwort* pParent /<em>=NULL</em>/, MySQLConnection myDB)<br />
: CDialog(CAntwortNeu::IDD, pParent)<br />
{<br />
//{{AFX_DATA_INIT(CAntwortNeu)<br />
m_DB = myDB;<br />
m_ant = pParent;<br />
m_strManDB = _T(&quot;&quot;);<br />
m_strEditManuell = _T(&quot;&quot;);<br />
//}}AFX_DATA_INIT<br />
}<br />
void blabla{<br />
m_ant-&gt;m_AntwortCon.connect(true);</p>
<p>strQuery.Format(&quot;SELECT id FROM antwort&quot;);<br />
if (!m_NeuCon.execute(strQuery))<br />
{<br />
m_NeuCon.disconnect();<br />
return ;<br />
} // if Ende</p>
<p>for (int i=0; i&lt;m_NeuCon.getNofRows(); i++) {<br />
row = m_NeuCon.getRow(i);<br />
m_lstManDB.AddString(row[0]);<br />
}<br />
}</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1226412</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1226412</guid><dc:creator><![CDATA[Ulf_Merboldt]]></dc:creator><pubDate>Sat, 10 Feb 2007 18:38:30 GMT</pubDate></item></channel></rss>