<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title>Форум QUIK [тема: Помогите принять Lua-таблицу в dll на c++]</title>
		<link>http://forum.quik.ru</link>
		<description>Новое в теме Помогите принять Lua-таблицу в dll на c++ форума  на сайте Форум QUIK [forum.quik.ru]</description>
		<language>ru</language>
		<docs>http://backend.userland.com/rss2</docs>
		<pubDate>Thu, 09 Apr 2026 13:28:02 +0300</pubDate>
		<item>
			<title>Помогите принять Lua-таблицу в dll на c++</title>
			<description><![CDATA[<b><a href="http://forum.quik.ru/messages/forum10/message26086/topic943/">Помогите принять Lua-таблицу в dll на c++</a></b> в форуме <a href="http://forum.quik.ru/forum10/">Программирование на языке Lua</a>. <br />
			...или здесь, как просили, на C++ : <noindex><a href="https://github.com/elelel/qluacpp-tutorial/tree/master/l2q_wa" target="_blank" rel="nofollow">https://github.com/elelel/qluacpp-tutorial/tree/master/l2q_wa</a></noindex><br /><img src="https://raw.githubusercontent.com/elelel/qluacpp-tutorial/master/l2q_wa/doc/l2q_wa_screencast.gif" alt="Пользователь добавил изображение" border="0" /><br />Но за два года человек наверняка уже получил свой стакан :) <br />
			<i>06.08.2017 21:05:49, El El.</i>]]></description>
			<link>http://forum.quik.ru/messages/forum10/message26086/topic943/</link>
			<guid>http://forum.quik.ru/messages/forum10/message26086/topic943/</guid>
			<pubDate>Sun, 06 Aug 2017 21:05:49 +0300</pubDate>
			<category>Программирование на языке Lua</category>
		</item>
		<item>
			<title>Помогите принять Lua-таблицу в dll на c++</title>
			<description><![CDATA[<b><a href="http://forum.quik.ru/messages/forum10/message26076/topic943/">Помогите принять Lua-таблицу в dll на c++</a></b> в форуме <a href="http://forum.quik.ru/forum10/">Программирование на языке Lua</a>. <br />
			Добрый день!<br />Решение здесь <noindex><a href="https://quikluacsharp.ru/qlua-c-cpp-csharp/otpravka-stakana-iz-quik-qlua-v-prilozhenie-c/" target="_blank" rel="nofollow">https://quikluacsharp.ru/qlua-c-cpp-csharp/otpravka-stakana-iz-quik-qlua-v-prilozhenie-c/</a></noindex> <br />
			<i>05.08.2017 08:53:46, V Y.</i>]]></description>
			<link>http://forum.quik.ru/messages/forum10/message26076/topic943/</link>
			<guid>http://forum.quik.ru/messages/forum10/message26076/topic943/</guid>
			<pubDate>Sat, 05 Aug 2017 08:53:46 +0300</pubDate>
			<category>Программирование на языке Lua</category>
		</item>
		<item>
			<title>Помогите принять Lua-таблицу в dll на c++</title>
			<description><![CDATA[<b><a href="http://forum.quik.ru/messages/forum10/message8718/topic943/">Помогите принять Lua-таблицу в dll на c++</a></b> в форуме <a href="http://forum.quik.ru/forum10/">Программирование на языке Lua</a>. <br />
			Добрый день.<br /><noindex><a href="http://stackoverflow.com/questions/16975760/reading-lua-nested-tables-in-c" target="_blank" rel="nofollow">Reading Lua nested tables in C++</a></noindex> <br />
			<i>17.09.2015 10:42:17, Michael Bulychev.</i>]]></description>
			<link>http://forum.quik.ru/messages/forum10/message8718/topic943/</link>
			<guid>http://forum.quik.ru/messages/forum10/message8718/topic943/</guid>
			<pubDate>Thu, 17 Sep 2015 10:42:17 +0300</pubDate>
			<category>Программирование на языке Lua</category>
		</item>
		<item>
			<title>Помогите принять Lua-таблицу в dll на c++</title>
			<description><![CDATA[<b><a href="http://forum.quik.ru/messages/forum10/message8663/topic943/">Помогите принять Lua-таблицу в dll на c++</a></b> в форуме <a href="http://forum.quik.ru/forum10/">Программирование на языке Lua</a>. <br />
			Допустим в Lua-скрипте есть функция, которая должна передать таблицу в функцию в dll на с++<br />
====code====
<pre>function OnQuote(class, sec )
&nbsp;&nbsp;if class =="SPBFUT" and sec == "RIZ2" then
&nbsp;&nbsp;&nbsp;&nbsp;ql2 = getQuoteLevel2(class, sec)
&nbsp;&nbsp;&nbsp;&nbsp;local i = 5
&nbsp;&nbsp;&nbsp;&nbsp;func_in_dll(i, gl2)
&nbsp;&nbsp;end
end</pre>
=============
Теперь функция в самой dll:<br />
====code====
<pre>&#91;/CODE&#93;&#91;CODE&#93;int&nbsp;&nbsp;func_in_dll(lua_State *L) {</pre>
=============

====code====
<pre>&nbsp;&nbsp;int i = luaL_checkinteger(L, 1);

&nbsp;&nbsp;-- как теперь получить таблицу ql2 ?

&nbsp;&nbsp;return 0;
}
</pre>
=============
Так как получить таблицу ? Как работать с её элементами. В частности, в данном примере, в таблицу gl2 вложены ещё 2 таблицы: &nbsp;bid и offer. Как с ними работать в c++ ? <br />
			<i>16.09.2015 15:48:15, Дмитрий.</i>]]></description>
			<link>http://forum.quik.ru/messages/forum10/message8663/topic943/</link>
			<guid>http://forum.quik.ru/messages/forum10/message8663/topic943/</guid>
			<pubDate>Wed, 16 Sep 2015 15:48:15 +0300</pubDate>
			<category>Программирование на языке Lua</category>
		</item>
	</channel>
</rss>
