<?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=433394&amp;view=findpost&amp;p=3887060</guid>
        <pubDate>Thu, 02 Mar 2023 17:34:34 +0000</pubDate>
        <title>Почему mysql не видит функцию из подключаемой DLL?</title>
        <link>https://forum.sources.ru/index.php?showtopic=433394&amp;view=findpost&amp;p=3887060</link>
        <description><![CDATA[Majestio: Конечно, мы можем ещё копаться тут триста лет в мелочах ... а ты подумай &quot;перпендикулярно&quot; ... возьми Qt6 и просто начти программировать прикладную логику. Ну подумаешь +16Мб к исполняемому файлу ... ты же не эмбедер, лили да?]]></description>
        <author>Majestio</author>
        <category>C/C++: Базы данных</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=433394&amp;view=findpost&amp;p=3887054</guid>
        <pubDate>Thu, 02 Mar 2023 17:05:10 +0000</pubDate>
        <title>Почему mysql не видит функцию из подключаемой DLL?</title>
        <link>https://forum.sources.ru/index.php?showtopic=433394&amp;view=findpost&amp;p=3887054</link>
        <description><![CDATA[izumov: с учетом советов и подсказок программа сейчас имеет вид<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">#include&#60;WinSock2.h&#62;</div><div class="code_line">#include&#60;mysql.h&#62;</div><div class="code_line">#include&#60;ctype.h&#62;</div><div class="code_line">#include&#60;pch.h&#62;</div><div class="code_line">extern &quot;C&quot; int yougo_init(UDF_INIT*, UDF_ARGS*, char*) { return 0; }</div><div class="code_line">extern &quot;C&quot; int &nbsp;yougo_deinit(UDF_INIT*) { return 0; }</div><div class="code_line">extern &quot;C&quot; double yougo(UDF_INIT*, UDF_ARGS*, char*) { return 0.0; }</div></ol></div></div></div></div><script>preloadCodeButtons('1');</script><br>
однако мне ее не удается собрать из-за ошибок 1.Серьезность	E1696	не удается открыть источник файл &quot;pch.h&quot;	Probamysqludf	H:&#092;studyprojects&#092;MySqlLib&#092;MySQLPRoba1&#092;Probamysqludf&#092;dllmain.cpp	4<br>
2.Ошибка	C2065	UDF_INIT: необъявленный идентификатор	Probamysqludf	H:&#092;studyprojects&#092;MySqlLib&#092;MySQLPRoba1&#092;Probamysqludf&#092;dllmain.cpp	5<br>
3.Ошибка	C2143	синтаксическая ошибка: отсутствие &quot;;&quot; перед &quot;{&quot;	Probamysqludf	H:&#092;studyprojects&#092;MySqlLib&#092;MySQLPRoba1&#092;Probamysqludf&#092;dllmain.cpp	5<br>
	<br>
<br>
.Как мне добиться работоспособности программы?]]></description>
        <author>izumov</author>
        <category>C/C++: Базы данных</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=433394&amp;view=findpost&amp;p=3886964</guid>
        <pubDate>Wed, 01 Mar 2023 12:57:12 +0000</pubDate>
        <title>Почему mysql не видит функцию из подключаемой DLL?</title>
        <link>https://forum.sources.ru/index.php?showtopic=433394&amp;view=findpost&amp;p=3886964</link>
        <description><![CDATA[Majestio: Может быть поможет: <a class='tag-url' href='https://stackoverflow.com/questions/6523166/error-1127-in-mysql-udf-creation' target='_blank'>https://stackoverflow.com/questions/6523166...ql-udf-creation</a>]]></description>
        <author>Majestio</author>
        <category>C/C++: Базы данных</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=433394&amp;view=findpost&amp;p=3886963</guid>
        <pubDate>Wed, 01 Mar 2023 12:51:41 +0000</pubDate>
        <title>Почему mysql не видит функцию из подключаемой DLL?</title>
        <link>https://forum.sources.ru/index.php?showtopic=433394&amp;view=findpost&amp;p=3886963</link>
        <description><![CDATA[izumov: На С++ определил экспортируемую функцию в рамках освоения технологии создания и вызова udf вmysql.Код программы генерирующей DLL:<br>
C++Выделить код<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">// dllmain.cpp : Определяет точку входа для приложения DLL.</div><div class="code_line">#include &quot;pch.h&quot;</div><div class="code_line">_declspec(dllexport)</div><div class="code_line">double you() {</div><div class="code_line">&nbsp;&nbsp; &nbsp;return 0.0;</div><div class="code_line">}</div><div class="code_line">&nbsp;</div><div class="code_line">BOOL APIENTRY DllMain( HMODULE hModule,</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; DWORD &nbsp;ul_reason_for_call,</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LPVOID lpReserved</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; )</div><div class="code_line">{</div><div class="code_line">&nbsp;&nbsp; &nbsp;switch (ul_reason_for_call)</div><div class="code_line">&nbsp;&nbsp; &nbsp;{</div><div class="code_line">&nbsp;&nbsp; &nbsp;case DLL_PROCESS_ATTACH:</div><div class="code_line">&nbsp;&nbsp; &nbsp;case DLL_THREAD_ATTACH:</div><div class="code_line">&nbsp;&nbsp; &nbsp;case DLL_THREAD_DETACH:</div><div class="code_line">&nbsp;&nbsp; &nbsp;case DLL_PROCESS_DETACH:</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;break;</div><div class="code_line">&nbsp;&nbsp; &nbsp;}</div><div class="code_line">&nbsp;&nbsp; &nbsp;return TRUE;</div><div class="code_line">}</div></ol></div></div></div></div><br>
Пытаюсь подключить функцию к mysql командой CREATE FUNCTION you RETURNS REAL SONAME<br>
&quot;mysqlProba.dll&quot;;<br>
Получаю Error Code: 1127. Can&#39;t find symbol &#39;you&#39; in library. В чем проблема как мне добиться чтобы функция подключилась и стала доступна для вызова в mysql?]]></description>
        <author>izumov</author>
        <category>C/C++: Базы данных</category>
      </item>
	
      </channel>
      </rss>
	