<?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[Hilfe bei Entwicklung von Scriptsprache. Wie regristriere ich runtime Variablen ?]]></title><description><![CDATA[<p>Hallo,</p>
<p>Bei Scripts kann man simpler weise einfach Variablen .. mit Namen definieren.<br />
Mein Problem ist, dass ich einen direkten Zugriff ueber den Namen der Variablen (im Script) auf den eigentlichen Pointer haben moechte.<br />
Bsp. :</p>
<p>&lt;myscript&gt;<br />
int help = 5; // Variable help vom Typ int<br />
.<br />
.<br />
.<br />
&lt;/myscript&gt;</p>
<p>nun erkennt die Scriptsprache help als int mit '5' .., jedoch verschwendet es derzeit Zeit die Variable im Speichersystem abzulegen bzw. spaeter wieder zu finden und zu verwenden. Meine Frage ist nun, gibt es eine Moeglichkeit, 'help' direkt als runtime Variable zu regristrieren ?<br />
Wenn nicht, gibt es eine moeglichkeit direkt in den Speicher zu schreiben und diesen als 'help' zu regristrieren ?</p>
<p>Die einzige Information, ueber die ich den Speicher abfragen kann, ist der Name der Variable. Ich waere echt gluecklich, wenn es einen Weg gibt, das direkt ueber den Namen zu machen.<br />
Ich hoffe, meine Gedanken sind nachvollziehbar.</p>
<p>Danke,</p>
<p>ZackZackZack.</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/87784/hilfe-bei-entwicklung-von-scriptsprache-wie-regristriere-ich-runtime-variablen</link><generator>RSS for Node</generator><lastBuildDate>Sun, 02 Aug 2026 17:50:48 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/87784.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 04 Oct 2004 02:07:15 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Hilfe bei Entwicklung von Scriptsprache. Wie regristriere ich runtime Variablen ? on Mon, 04 Oct 2004 02:07:15 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>Bei Scripts kann man simpler weise einfach Variablen .. mit Namen definieren.<br />
Mein Problem ist, dass ich einen direkten Zugriff ueber den Namen der Variablen (im Script) auf den eigentlichen Pointer haben moechte.<br />
Bsp. :</p>
<p>&lt;myscript&gt;<br />
int help = 5; // Variable help vom Typ int<br />
.<br />
.<br />
.<br />
&lt;/myscript&gt;</p>
<p>nun erkennt die Scriptsprache help als int mit '5' .., jedoch verschwendet es derzeit Zeit die Variable im Speichersystem abzulegen bzw. spaeter wieder zu finden und zu verwenden. Meine Frage ist nun, gibt es eine Moeglichkeit, 'help' direkt als runtime Variable zu regristrieren ?<br />
Wenn nicht, gibt es eine moeglichkeit direkt in den Speicher zu schreiben und diesen als 'help' zu regristrieren ?</p>
<p>Die einzige Information, ueber die ich den Speicher abfragen kann, ist der Name der Variable. Ich waere echt gluecklich, wenn es einen Weg gibt, das direkt ueber den Namen zu machen.<br />
Ich hoffe, meine Gedanken sind nachvollziehbar.</p>
<p>Danke,</p>
<p>ZackZackZack.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/620333</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/620333</guid><dc:creator><![CDATA[zackzackzack]]></dc:creator><pubDate>Mon, 04 Oct 2004 02:07:15 GMT</pubDate></item><item><title><![CDATA[Reply to Hilfe bei Entwicklung von Scriptsprache. Wie regristriere ich runtime Variablen ? on Mon, 04 Oct 2004 06:58:29 GMT]]></title><description><![CDATA[<p>mit std::map kannst du das machen:</p>
<pre><code class="language-cpp">struct variable {
  //...
};

std::map&lt;std::string,variable*&gt; variables;
variables[&quot;help&quot;]=new int_variable(5);
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/620363</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/620363</guid><dc:creator><![CDATA[rüdiger]]></dc:creator><pubDate>Mon, 04 Oct 2004 06:58:29 GMT</pubDate></item><item><title><![CDATA[Reply to Hilfe bei Entwicklung von Scriptsprache. Wie regristriere ich runtime Variablen ? on Tue, 05 Oct 2004 00:45:50 GMT]]></title><description><![CDATA[<p>das sieht erstmal ziehmlich gut aus. Ich werde es gleich ausprobieren.</p>
<p>Danke,</p>
<p>ZackZackZack.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/621205</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/621205</guid><dc:creator><![CDATA[zackzackzack]]></dc:creator><pubDate>Tue, 05 Oct 2004 00:45:50 GMT</pubDate></item><item><title><![CDATA[Reply to Hilfe bei Entwicklung von Scriptsprache. Wie regristriere ich runtime Variablen ? on Sun, 10 Oct 2004 00:33:45 GMT]]></title><description><![CDATA[<p>ich bekomme es einfach nicht zum laufen.<br />
ich habe es mit insert versucht und bekomme den gleichen Fehler</p>
<pre><code>std::map&lt;std::string,variable*&gt; variables;

#include &quot;stdafx.h&quot;
#include &lt;map&gt;
#include &lt;iostream&gt;

struct variable { 
	int data;
}; 

std::map&lt;std::string,variable*&gt; variables;
std::map&lt;std::string,variable*&gt;::iterator var_it;
std::map&lt;std::string,variable*&gt;::const_iterator var_const_it;

void main(void)
	{
	         variables.insert(std::make_pair(&quot;hello&quot;, 5)); //selber Fehler
		variable temp;
		variables[&quot;help&quot;] = new variable(temp); // selber Fehler
		variables[&quot;help1&quot;] = new variable; // selber Fehler
                  variables[&quot;help&quot;]=new variable(5); // laeuft nicht

}
</code></pre>
<p>'selber Fehler' Fehlermeldung :</p>
<pre><code>c:\Program Files\Microsoft Visual Studio .NET\Vc7\include\functional(139): error C2784: 'bool std::operator &lt;(const std::_Tree&lt;_Traits&gt; &amp;,const std::_Tree&lt;_Traits&gt; &amp;)' : Vorlagenargument für 'const std::_Tree&lt;_Traits&gt; &amp;' von 'const std::string' konnte nicht hergeleitet werden
c:\Program Files\Microsoft Visual Studio .NET\Vc7\include\functional(139): error C2784: 'bool std::operator &lt;(const std::_Tree&lt;_Traits&gt; &amp;,const std::_Tree&lt;_Traits&gt; &amp;)' : Vorlagenargument für 'const std::_Tree&lt;_Traits&gt; &amp;' von 'const std::string' konnte nicht hergeleitet werden
c:\Program Files\Microsoft Visual Studio .NET\Vc7\include\functional(139): error C2784: 'bool std::operator &lt;(const std::_Tree&lt;_Traits&gt; &amp;,const std::_Tree&lt;_Traits&gt; &amp;)' : Vorlagenargument für 'const std::_Tree&lt;_Traits&gt; &amp;' von 'const std::string' konnte nicht hergeleitet werden
c:\Program Files\Microsoft Visual Studio .NET\Vc7\include\functional(139): error C2784: 'bool std::operator &lt;(const std::reverse_iterator&lt;_RanIt&gt; &amp;,const std::reverse_iterator&lt;_RanIt&gt; &amp;)' : Vorlagenargument für 'const std::reverse_iterator&lt;_RanIt&gt; &amp;' von 'const std::string' konnte nicht hergeleitet werden
c:\Program Files\Microsoft Visual Studio .NET\Vc7\include\functional(139): error C2784: 'bool std::operator &lt;(const std::reverse_iterator&lt;_RanIt&gt; &amp;,const std::reverse_iterator&lt;_RanIt&gt; &amp;)' : Vorlagenargument für 'const std::reverse_iterator&lt;_RanIt&gt; &amp;' von 'const std::string' konnte nicht hergeleitet werden
c:\Program Files\Microsoft Visual Studio .NET\Vc7\include\functional(139): error C2784: 'bool std::operator &lt;(const std::reverse_iterator&lt;_RanIt&gt; &amp;,const std::reverse_iterator&lt;_RanIt&gt; &amp;)' : Vorlagenargument für 'const std::reverse_iterator&lt;_RanIt&gt; &amp;' von 'const std::string' konnte nicht hergeleitet werden
c:\Program Files\Microsoft Visual Studio .NET\Vc7\include\functional(139): error C2784: 'bool std::operator &lt;(const std::_Ptrit&lt;_Ty,_Diff,_Pointer2,_Reference2,_Pointer2,_Reference2&gt; &amp;,const std::_Ptrit&lt;_Ty,_Diff,_Pointer,_Reference,_Pointer2,_Reference2&gt; &amp;)' : Vorlagenargument für 'const std::_Ptrit&lt;_Ty,_Diff,_Pointer2,_Reference2,_Pointer2,_Reference2&gt; &amp;' von 'const std::string' konnte nicht hergeleitet werden
c:\Program Files\Microsoft Visual Studio .NET\Vc7\include\functional(139): error C2784: 'bool std::operator &lt;(const std::_Ptrit&lt;_Ty,_Diff,_Pointer2,_Reference2,_Pointer2,_Reference2&gt; &amp;,const std::_Ptrit&lt;_Ty,_Diff,_Pointer,_Reference,_Pointer2,_Reference2&gt; &amp;)' : Vorlagenargument für 'const std::_Ptrit&lt;_Ty,_Diff,_Pointer2,_Reference2,_Pointer2,_Reference2&gt; &amp;' von 'const std::string' konnte nicht hergeleitet werden
c:\Program Files\Microsoft Visual Studio .NET\Vc7\include\functional(139): error C2784: 'bool std::operator &lt;(const std::_Ptrit&lt;_Ty,_Diff,_Pointer2,_Reference2,_Pointer2,_Reference2&gt; &amp;,const std::_Ptrit&lt;_Ty,_Diff,_Pointer,_Reference,_Pointer2,_Reference2&gt; &amp;)' : Vorlagenargument für 'const std::_Ptrit&lt;_Ty,_Diff,_Pointer2,_Reference2,_Pointer2,_Reference2&gt; &amp;' von 'const std::string' konnte nicht hergeleitet werden
c:\Program Files\Microsoft Visual Studio .NET\Vc7\include\functional(139): error C2784: 'bool std::operator &lt;(const std::pair&lt;_Ty1,_Ty2&gt; &amp;,const std::pair&lt;_Ty1,_Ty2&gt; &amp;)' : Vorlagenargument für 'const std::pair&lt;_Ty1,_Ty2&gt; &amp;' von 'const std::string' konnte nicht hergeleitet werden
c:\Program Files\Microsoft Visual Studio .NET\Vc7\include\functional(139): error C2784: 'bool std::operator &lt;(const std::pair&lt;_Ty1,_Ty2&gt; &amp;,const std::pair&lt;_Ty1,_Ty2&gt; &amp;)' : Vorlagenargument für 'const std::pair&lt;_Ty1,_Ty2&gt; &amp;' von 'const std::string' konnte nicht hergeleitet werden
c:\Program Files\Microsoft Visual Studio .NET\Vc7\include\functional(139): error C2784: 'bool std::operator &lt;(const std::pair&lt;_Ty1,_Ty2&gt; &amp;,const std::pair&lt;_Ty1,_Ty2&gt; &amp;)' : Vorlagenargument für 'const std::pair&lt;_Ty1,_Ty2&gt; &amp;' von 'const std::string' konnte nicht hergeleitet werden
c:\Program Files\Microsoft Visual Studio .NET\Vc7\include\functional(139): error C2676: Binärer Operator '&lt;' : 'const std::string' definiert diesen Operator oder eine Konvertierung in einen für den vordefinierten Operator geeigneten Typ nicht
</code></pre>
<p>'laeuft nicht' Fehler :<br />
g:\Projects\test\test.cpp(32): error C2664: 'variable::variable(const variable &amp;)' : Konvertierung des Parameters 1 von 'int' in 'const variable &amp;' nicht möglich</p>
<p>hat einer eine Ahnung warum ? Ich kannte map vorher noch nicht, also habe ich so zu sagen keine Ahnung.</p>
<p>Danke.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/625169</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/625169</guid><dc:creator><![CDATA[zackzackzack]]></dc:creator><pubDate>Sun, 10 Oct 2004 00:33:45 GMT</pubDate></item><item><title><![CDATA[Reply to Hilfe bei Entwicklung von Scriptsprache. Wie regristriere ich runtime Variablen ? on Sun, 10 Oct 2004 05:45:31 GMT]]></title><description><![CDATA[<p>#include &lt;string&gt;</p>
]]></description><link>https://www.c-plusplus.net/forum/post/625185</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/625185</guid><dc:creator><![CDATA[MFK]]></dc:creator><pubDate>Sun, 10 Oct 2004 05:45:31 GMT</pubDate></item><item><title><![CDATA[Reply to Hilfe bei Entwicklung von Scriptsprache. Wie regristriere ich runtime Variablen ? on Sun, 10 Oct 2004 15:16:57 GMT]]></title><description><![CDATA[<p>Danke, es laeuft jetzt wunderbar <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/625385</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/625385</guid><dc:creator><![CDATA[zackzackzack]]></dc:creator><pubDate>Sun, 10 Oct 2004 15:16:57 GMT</pubDate></item><item><title><![CDATA[Reply to Hilfe bei Entwicklung von Scriptsprache. Wie regristriere ich runtime Variablen ? on Sun, 10 Oct 2004 16:08:30 GMT]]></title><description><![CDATA[<p>int main()! nicht void main()!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/625428</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/625428</guid><dc:creator><![CDATA[rüdiger]]></dc:creator><pubDate>Sun, 10 Oct 2004 16:08:30 GMT</pubDate></item></channel></rss>