<?xml version='1.0' encoding="utf-8"?>
      <rss version='2.0'>
      <channel>
      <title>Форум на Исходниках.RU</title>
      <link>https://forum.sources.ru</link>
      <description>Форум на Исходниках.RU</description>
      <generator>Форум на Исходниках.RU</generator>
  	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=141902&amp;view=findpost&amp;p=1100080</guid>
        <pubDate>Sun, 14 May 2006 10:55:41 +0000</pubDate>
        <title>Связъ ADO с базой данных</title>
        <link>https://forum.sources.ru/index.php?showtopic=141902&amp;view=findpost&amp;p=1100080</link>
        <description><![CDATA[koss: Registry-&gt;RootKey=HKEY_LOCAL_MACHINE;<br>
if (<span class='tag-u'>&#33;</span>Registry-&gt;KeyExists(&quot;<span class='tag-u'>&#092;&#092;</span>SOFTWARE&#092;&#092;ODBC&#092;&#092;ODBC.INI&#092;&#092;<span class='tag-u'>rig</span>&quot;))<br>
{<br>
RegDB();<br>
}<br>
<br>
Во напутал :wacko:]]></description>
        <author>koss</author>
        <category>Borland C++ Builder/Turbo C++ Explorer</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=141902&amp;view=findpost&amp;p=1099981</guid>
        <pubDate>Sun, 14 May 2006 08:58:49 +0000</pubDate>
        <title>Связъ ADO с базой данных</title>
        <link>https://forum.sources.ru/index.php?showtopic=141902&amp;view=findpost&amp;p=1099981</link>
        <description><![CDATA[koss: kalexs_uzb да это я догадалса ещё вечером вчера сделать .<br> Тута проверка на существование ветви всегда фальше выдаёт .<br>У меня шас просто литературы про реестр нету . Так оноб решил ужеб.]]></description>
        <author>koss</author>
        <category>Borland C++ Builder/Turbo C++ Explorer</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=141902&amp;view=findpost&amp;p=1099913</guid>
        <pubDate>Sun, 14 May 2006 07:12:45 +0000</pubDate>
        <title>Связъ ADO с базой данных</title>
        <link>https://forum.sources.ru/index.php?showtopic=141902&amp;view=findpost&amp;p=1099913</link>
        <description><![CDATA[kalexs_uzb: <div class='tag-quote'><span class='tag-quote-prefix'>Цитата</span> <div class='quote '>kalexs_uzb там който не такой if он в обеих случаях один ответ выдаёт</div></div><br>
Вначале надо:<br>
<div class='tag-code'><span class='pre_code'></span><div class='code  code_collapsed ' title='Подсветка синтаксиса доступна зарегистрированным участникам Форума.' style=''><div><div><ol type="1"><div class="code_line">Registry-&#62;RootKey=HKEY_LOCAL_MACHINE;</div></ol></div></div></div></div><script>preloadCodeButtons('1');</script>]]></description>
        <author>kalexs_uzb</author>
        <category>Borland C++ Builder/Turbo C++ Explorer</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=141902&amp;view=findpost&amp;p=1099832</guid>
        <pubDate>Sat, 13 May 2006 22:06:16 +0000</pubDate>
        <title>Связъ ADO с базой данных</title>
        <link>https://forum.sources.ru/index.php?showtopic=141902&amp;view=findpost&amp;p=1099832</link>
        <description><![CDATA[koss: kalexs_uzb там който не такой if он в обеих случаях один ответ выдаёт : :blink:]]></description>
        <author>koss</author>
        <category>Borland C++ Builder/Turbo C++ Explorer</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=141902&amp;view=findpost&amp;p=1099763</guid>
        <pubDate>Sat, 13 May 2006 20:06:49 +0000</pubDate>
        <title>Связъ ADO с базой данных</title>
        <link>https://forum.sources.ru/index.php?showtopic=141902&amp;view=findpost&amp;p=1099763</link>
        <description><![CDATA[kalexs_uzb: <strong class='tag-b'>koss</strong>, весь код в блок try..finaly и delete Registry:<br>
<div class='tag-code'><span class='pre_code'></span><div class='code  code_collapsed ' title='Подсветка синтаксиса доступна зарегистрированным участникам Форума.' style=''><div><div><ol type="1"><div class="code_line">try {</div><div class="code_line">&nbsp;&nbsp;//проверка создания DNS</div><div class="code_line">&nbsp;&nbsp;if (Registry-&#62;OpenKey(&quot;SOFTWARE\ODBC\ODBC.INI\rigel&quot;, false))</div><div class="code_line">&nbsp;&nbsp; &nbsp;return; </div><div class="code_line">&nbsp;&nbsp;//... </div><div class="code_line">} </div><div class="code_line">__finally {</div><div class="code_line">&nbsp;&nbsp;delete Registry;</div><div class="code_line">}</div></ol></div></div></div></div>]]></description>
        <author>kalexs_uzb</author>
        <category>Borland C++ Builder/Turbo C++ Explorer</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=141902&amp;view=findpost&amp;p=1099667</guid>
        <pubDate>Sat, 13 May 2006 18:44:21 +0000</pubDate>
        <title>Связъ ADO с базой данных</title>
        <link>https://forum.sources.ru/index.php?showtopic=141902&amp;view=findpost&amp;p=1099667</link>
        <description><![CDATA[koss: bool  TForm1::RegDB()<br>
{<br>
AnsiString S,Windir;<br>
TRegistry *Registry=new TRegistry(KEY_ALL_ACCESS);<br>
char Win[MAX_PATH];<br>
GetWindowsDirectory(Win, MAX_PATH);<br>
S=GetCurrentDir() + &quot;&#092;&#092;Firma.mdb&quot;;<br>
Windir = (AnsiString)Win + &quot;&#092;&#092;system32&#092;&#092;odbcjt32.dll&quot;;<br>
<br>
Registry-&gt;RootKey=HKEY_LOCAL_MACHINE; <br>
Registry-&gt;OpenKey(&quot;SOFTWARE&#092;&#092;ODBC&#092;&#092;ODBC.INI&#092;&#092;rigel&quot;,true);<br>
Registry-&gt;WriteString(&quot;DBQ&quot;,S);<br>
Registry-&gt;WriteString(&quot;Driver&quot;,Windir);<br>
Registry-&gt;WriteString(&quot;FIL&quot;,&quot;MS Access;&quot;);<br>
Registry-&gt;WriteString(&quot;UID&quot;,&quot;&quot;);<br>
Registry-&gt;WriteInteger(&quot;DriverId&quot;,25);<br>
Registry-&gt;WriteInteger(&quot;SafeTransactions&quot;,0);<br>
Registry-&gt;OpenKey(&quot;Engines&#092;&#092;Jet&quot;,true);<br>
Registry-&gt;WriteString(&quot;ImplicitCommitSync&quot;,&quot;&quot;);<br>
Registry-&gt;WriteString(&quot;UserCommitSync&quot;,&quot;Yes&quot;);<br>
Registry-&gt;WriteInteger(&quot;MaxBufferSize&quot;,2048);<br>
Registry-&gt;WriteInteger(&quot;PageTimeout&quot;,5);<br>
Registry-&gt;WriteInteger(&quot;Threads&quot;,3);<br>
Registry-&gt;CloseKey();<br>
Registry-&gt;OpenKey(&quot;SOFTWARE&#092;&#092;ODBC&#092;&#092;ODBC.INI&#092;&#092;ODBC Data Sources&quot;,true);<br>
Registry-&gt;WriteString(&quot;rigel&quot;,&quot;Driver do Microsoft Access (*.mdb)&quot;);<br>
Registry-&gt;CloseKey();<br>
}<br>
<br>
Замутил создание системного DSN  теперь токо осталось сделать чтобы прога в реестре проверяла <br>
создан DSN чи нет  if(&#33;создан) {RegDB();}<br>
Конечно проблемы с нормальным правописанием на C++ у меня есть .<br>
Ктонибудь можете оптимизировать  какойндь кусочек кода ,кому сколько не жалко.<br>
Сами мы не местные.... Извините что обращаемся.... :whistle:]]></description>
        <author>koss</author>
        <category>Borland C++ Builder/Turbo C++ Explorer</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=141902&amp;view=findpost&amp;p=1099345</guid>
        <pubDate>Sat, 13 May 2006 10:21:59 +0000</pubDate>
        <title>Связъ ADO с базой данных</title>
        <link>https://forum.sources.ru/index.php?showtopic=141902&amp;view=findpost&amp;p=1099345</link>
        <description><![CDATA[kalexs_uzb: А системный DNS в реестре: [HKEY_LOCAL_MACHINE&#092;SOFTWARE&#092;ODBC&#092;ODBC.INI&#092;&lt;имя&gt;] и [HKEY_LOCAL_MACHINE&#092;SOFTWARE&#092;ODBC&#092;ODBC.INI&#092;ODBC Data Sources].<br>
попробуй вручную создать запись через менеджер ODBC и проверь, что он туда записал, потом используя функции реестра, можно все это программно сделать.]]></description>
        <author>kalexs_uzb</author>
        <category>Borland C++ Builder/Turbo C++ Explorer</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=141902&amp;view=findpost&amp;p=1099323</guid>
        <pubDate>Sat, 13 May 2006 09:46:55 +0000</pubDate>
        <title>Связъ ADO с базой данных</title>
        <link>https://forum.sources.ru/index.php?showtopic=141902&amp;view=findpost&amp;p=1099323</link>
        <description><![CDATA[Bas: Если это файловый DSN - смотри в &#092;Common Files&#092;ODBC&#092;Data Source&#092; это просто ini файл.]]></description>
        <author>Bas</author>
        <category>Borland C++ Builder/Turbo C++ Explorer</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=141902&amp;view=findpost&amp;p=1098868</guid>
        <pubDate>Fri, 12 May 2006 15:15:43 +0000</pubDate>
        <title>Связъ ADO с базой данных</title>
        <link>https://forum.sources.ru/index.php?showtopic=141902&amp;view=findpost&amp;p=1098868</link>
        <description><![CDATA[koss: <div class='tag-quote'><a class='tag-quote-link' href='https://forum.sources.ru/index.php?showtopic=141902&view=findpost&p=1098505'><span class='tag-quote-prefix'>Цитата</span></a> <span class='tag-quote__quote-info'>Bas &#064; <time class="tag-quote__quoted-time" datetime="2006-05-12T10:30:40+00:00">12.05.06, 10:30</time></span><div class='quote '>Пуск-Настройка-Панель Управления-Источник данных ODBC.<br>
Можно и программно создать . </div></div><br>
<br>
А как ты программно создаёш ??? Через какой компонент? &lt;_&lt;]]></description>
        <author>koss</author>
        <category>Borland C++ Builder/Turbo C++ Explorer</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=141902&amp;view=findpost&amp;p=1098505</guid>
        <pubDate>Fri, 12 May 2006 10:30:40 +0000</pubDate>
        <title>Связъ ADO с базой данных</title>
        <link>https://forum.sources.ru/index.php?showtopic=141902&amp;view=findpost&amp;p=1098505</link>
        <description><![CDATA[Bas: Пуск-Настройка-Панель Управления-Источник данных ODBC.<br>Можно и программно  создать .]]></description>
        <author>Bas</author>
        <category>Borland C++ Builder/Turbo C++ Explorer</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=141902&amp;view=findpost&amp;p=1098503</guid>
        <pubDate>Fri, 12 May 2006 10:30:00 +0000</pubDate>
        <title>Связъ ADO с базой данных</title>
        <link>https://forum.sources.ru/index.php?showtopic=141902&amp;view=findpost&amp;p=1098503</link>
        <description><![CDATA[Dark Sup: <div class='tag-quote'><a class='tag-quote-link' href='https://forum.sources.ru/index.php?showtopic=141902&view=findpost&p=1098474'><span class='tag-quote-prefix'>Цитата</span></a> <span class='tag-quote__quote-info'>koss &#064; <time class="tag-quote__quoted-time" datetime="2006-05-12T10:03:27+00:00">12.05.06, 10:03</time></span><div class='quote '>а как DSN настраивается? не разу такую гачу не делал сторку подключения всегда формировал через <br>
GetCurrentDir()</div></div><br>
Не знаю, как местные мастера его аппаратно настраивают, а я просто иду в Панель управления -&gt; Администрирование -&gt; Источники данных (ODBC), там выбираю вкладку &quot;системный DSN&quot;, жму &quot;Добавить&quot;, выбираю драйвер ввожу имя и нужные настройки (для разных драйверов свои) и готов мой Alias, к которому можно без проблем обращаться из билдера просто по имени.  :)]]></description>
        <author>Dark Sup</author>
        <category>Borland C++ Builder/Turbo C++ Explorer</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=141902&amp;view=findpost&amp;p=1098474</guid>
        <pubDate>Fri, 12 May 2006 10:03:27 +0000</pubDate>
        <title>Связъ ADO с базой данных</title>
        <link>https://forum.sources.ru/index.php?showtopic=141902&amp;view=findpost&amp;p=1098474</link>
        <description><![CDATA[koss: Я слышал что нужно создавать DataModule и на него помещать компоненты БД<br>
<br>
<div class='tag-quote'><a class='tag-quote-link' href='https://forum.sources.ru/index.php?showtopic=141902&view=findpost&p=1098182'><span class='tag-quote-prefix'>Цитата</span></a> <span class='tag-quote__quote-info'>Dark Sup &#064; <time class="tag-quote__quoted-time" datetime="2006-05-12T05:34:17+00:00">12.05.06, 05:34</time></span><div class='quote '>Но тогда учти -- тебе нужно будет настраивать системный DSN (это делается за десять секунд, но всё же...). </div></div><br>
<br>
а как DSN настраивается? не разу такую гачу не делал сторку подключения всегда формировал через <br>
GetCurrentDir()]]></description>
        <author>koss</author>
        <category>Borland C++ Builder/Turbo C++ Explorer</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=141902&amp;view=findpost&amp;p=1098191</guid>
        <pubDate>Fri, 12 May 2006 05:43:36 +0000</pubDate>
        <title>Связъ ADO с базой данных</title>
        <link>https://forum.sources.ru/index.php?showtopic=141902&amp;view=findpost&amp;p=1098191</link>
        <description><![CDATA[Bas: Можно создать файлы udl,dsn и подставлять в ConnectionString этот файл.]]></description>
        <author>Bas</author>
        <category>Borland C++ Builder/Turbo C++ Explorer</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=141902&amp;view=findpost&amp;p=1098182</guid>
        <pubDate>Fri, 12 May 2006 05:34:17 +0000</pubDate>
        <title>Связъ ADO с базой данных</title>
        <link>https://forum.sources.ru/index.php?showtopic=141902&amp;view=findpost&amp;p=1098182</link>
        <description><![CDATA[Dark Sup: <div class='tag-quote'><a class='tag-quote-link' href='https://forum.sources.ru/index.php?showtopic=141902&view=findpost&p=1098056'><span class='tag-quote-prefix'>Цитата</span></a> <span class='tag-quote__quote-info'>koss &#064; <time class="tag-quote__quoted-time" datetime="2006-05-11T20:00:57+00:00">11.05.06, 20:00</time></span><div class='quote '>Но слышал что связь  ADO c БД можно связывать ещё как то: чи через Alias Manajer чи ещё как то <br>
<br>
Как это делать ??? И помоему мой способ чем то каличный</div></div><br>
Я через alias с базой данных связываюсь...  и, там, конечно, запись покороче выходит:<br>
<br>
<div class='tag-code'><span class='pre_code'></span><div class='code  code_collapsed ' title='Подсветка синтаксиса доступна зарегистрированным участникам Форума.' style=''><div><div><ol type="1"><div class="code_line">AnsiString Alias;</div><div class="code_line">&nbsp;&nbsp;TIniFile *pIniFile = new TIniFile(ExtractFileDir(Application-&#62;ExeName) + &quot;\Currency.ini&quot;);</div><div class="code_line">&nbsp;&nbsp;Alias = pIniFile-&#62;ReadString(&quot;Source&quot;, &quot;Alias&quot;, &quot;Clients&quot;);</div><div class="code_line">&nbsp;&nbsp;</div><div class="code_line">&nbsp;&nbsp;ADOConnection1-&#62;ConnectionString=&quot;Provider=MSDASQL.1;Persist Security Info=False;Data Source=&quot;+Alias+&quot;;&quot;;</div><div class="code_line">&nbsp;&nbsp;delete pIniFile;</div></ol></div></div></div></div><br>
<br>
Но тогда учти -- тебе нужно будет настраивать системный DSN (это делается за десять секунд, но всё же...).]]></description>
        <author>Dark Sup</author>
        <category>Borland C++ Builder/Turbo C++ Explorer</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=141902&amp;view=findpost&amp;p=1098179</guid>
        <pubDate>Fri, 12 May 2006 05:30:40 +0000</pubDate>
        <title>Связъ ADO с базой данных</title>
        <link>https://forum.sources.ru/index.php?showtopic=141902&amp;view=findpost&amp;p=1098179</link>
        <description><![CDATA[Seva: Я делаю почти так же. Единственная разница - я <strong class='tag-b'>GetCurrentDir</strong> стараюсь не использовать. :D]]></description>
        <author>Seva</author>
        <category>Borland C++ Builder/Turbo C++ Explorer</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=141902&amp;view=findpost&amp;p=1098056</guid>
        <pubDate>Thu, 11 May 2006 20:00:57 +0000</pubDate>
        <title>Связъ ADO с базой данных</title>
        <link>https://forum.sources.ru/index.php?showtopic=141902&amp;view=findpost&amp;p=1098056</link>
        <description><![CDATA[koss: Я обычно связываю ТADOConnection c базой данных через :<br><br><br>#define Constr   &quot;Provider=MSDASQL.1;Persist Security Info=False;Extended Properties=&#092;&quot;DBQ=&quot;+GetCurrentDir()+&quot;&#092;&#092;Firma.mdb;DefaultDir=&quot;+GetCurrentDir()+&quot;;Driver={Driver do Microsoft Access (*.mdb)};DriverId=25;FIL=MS Access;FILEDSN=&quot;+GetCurrentDir()+&quot;&#092;a;MaxBufferSize=2048;MaxScanRows=8;PageTimeout=5;SafeTransactions=0;Threads=3;UID=admin;UserCommitSync=Yes;&#092;&quot;&quot;<br><br>ADOConnection1-&gt;ConnectionString= Constr;<br>ADOConnection1-&gt;Connected=true;<br><br>Но слышал что связь  ADO c БД можно связывать ещё как то: чи через Alias Manajer чи ещё как то <br><br>Как это делать ??? И помоему мой способ чем то каличный]]></description>
        <author>koss</author>
        <category>Borland C++ Builder/Turbo C++ Explorer</category>
      </item>
	
      </channel>
      </rss>
	