<?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[Anfänger: Wie aus String LPINT machen ?]]></title><description><![CDATA[<p>Hallo, leider bin ich noch etwas unerfahren,<br />
deshalb wollte ich wissen,wie ich folgendes mache:</p>
<p>Bekomme aus der Registry einen String (&quot;1;2;3;4;5&quot;) dein möchte ich in einen LPINT umwandeln. Bis jetzt mach ich dass von Hand, gitbs da nix zum konvertieren ?</p>
<p>Wäre echt prima. lg chilli</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/152119/anfänger-wie-aus-string-lpint-machen</link><generator>RSS for Node</generator><lastBuildDate>Thu, 23 Jul 2026 17:32:02 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/152119.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 03 Jul 2006 08:06:14 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Anfänger: Wie aus String LPINT machen ? on Mon, 03 Jul 2006 08:06:14 GMT]]></title><description><![CDATA[<p>Hallo, leider bin ich noch etwas unerfahren,<br />
deshalb wollte ich wissen,wie ich folgendes mache:</p>
<p>Bekomme aus der Registry einen String (&quot;1;2;3;4;5&quot;) dein möchte ich in einen LPINT umwandeln. Bis jetzt mach ich dass von Hand, gitbs da nix zum konvertieren ?</p>
<p>Wäre echt prima. lg chilli</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1090535</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1090535</guid><dc:creator><![CDATA[dedidado]]></dc:creator><pubDate>Mon, 03 Jul 2006 08:06:14 GMT</pubDate></item><item><title><![CDATA[Reply to Anfänger: Wie aus String LPINT machen ? on Mon, 03 Jul 2006 09:28:51 GMT]]></title><description><![CDATA[<p>Warum willst Du den in einen LPINT umwandlen? Ohne mehr Infos geht das nicht (es gibt keine Umwandlung eines String nach LPINT; du musst schon erzählen was Du eigentlich vor hast)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1090571</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1090571</guid><dc:creator><![CDATA[Jochen Kalmbach]]></dc:creator><pubDate>Mon, 03 Jul 2006 09:28:51 GMT</pubDate></item><item><title><![CDATA[Reply to Anfänger: Wie aus String LPINT machen ? on Mon, 03 Jul 2006 10:08:05 GMT]]></title><description><![CDATA[<p>Ok tut mir leid. Also ich möchte mit SetColumnOrderArray, die Spaltenreihenfolge einer ListView setzen.</p>
<p>Habe jetzt dafür folgenden Ansatz:</p>
<pre><code class="language-cpp">int iColumns = 8;
	int i = 0;
	int iPos = 0;
	int p =	0;
	LPINT lp_OrderArray = (LPINT) malloc(iColumns*sizeof(int));

	for( i;i &lt; iColumns-1; i++)
	{
		strRegPos = strColOrder[p]; 
		int nNumField = _stscanf(strRegPos,	_T(&quot;%d&quot;), &amp;iPos);
		if (nNumField != EOF)  
		{
		lp_OrderArray[i] = iPos; 
		p = p + 2;							//next Pos
		}
	}
</code></pre>
<p>wobie strColOrder so aussieht &quot;1;2;3;4;5;6;7&quot;.<br />
Wenn ich &quot;meinen&quot; LPINT nehme, dann bekomm ich ne Exception <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--disappointed_face"
      title=":-("
      alt="😞"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1090592</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1090592</guid><dc:creator><![CDATA[dedidado2]]></dc:creator><pubDate>Mon, 03 Jul 2006 10:08:05 GMT</pubDate></item><item><title><![CDATA[Reply to Anfänger: Wie aus String LPINT machen ? on Mon, 03 Jul 2006 10:15:24 GMT]]></title><description><![CDATA[<p>Du musst ja zuerst mal den String &quot;Aufsplitten&quot;... dazu würde ich strtok (bzw. _tcstok) verwenden. Das ergebnis stopfst Du dann ein ein std::vector&lt;INT&gt; rein.<br />
Dann weisst Du wie viele Einträge drin sind und kannst passend ein LPINT allokieren:</p>
<pre><code class="language-cpp">LPINT pOrderArray = new INT[myVector.size()];
</code></pre>
<p>Jetzt kannst Du alles in das Array rein tun und es der Funktion übergeben.<br />
Anschliessend wieder</p>
<pre><code class="language-cpp">delete [] pOrderArray;
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1090595</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1090595</guid><dc:creator><![CDATA[Jochen Kalmbach]]></dc:creator><pubDate>Mon, 03 Jul 2006 10:15:24 GMT</pubDate></item><item><title><![CDATA[Reply to Anfänger: Wie aus String LPINT machen ? on Mon, 03 Jul 2006 11:37:47 GMT]]></title><description><![CDATA[<p>Ich weiß doch wie groß mein LPINT sein muss, 8*int, da ich 7 Spalten habe.Zudem weiß ich ja dass in meinem String jeder 2 &quot;Buchstabe&quot; eine Zahl is, also geh ich mit 2er Schritten durch den String und hab somit die Reihenfolge.<br />
Das PRoblem is wenn ich den LPINT dann über geb, bekomm ich ne Exception... HMM HMM</p>
<p>Danke für die schnellen antworten..</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1090639</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1090639</guid><dc:creator><![CDATA[dedidado2]]></dc:creator><pubDate>Mon, 03 Jul 2006 11:37:47 GMT</pubDate></item><item><title><![CDATA[Reply to Anfänger: Wie aus String LPINT machen ? on Mon, 03 Jul 2006 12:22:51 GMT]]></title><description><![CDATA[<p>Dann zeig uns mal den Aufruf, welcher die Excepion erzeugt...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1090668</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1090668</guid><dc:creator><![CDATA[Jochen Kalmbach]]></dc:creator><pubDate>Mon, 03 Jul 2006 12:22:51 GMT</pubDate></item><item><title><![CDATA[Reply to Anfänger: Wie aus String LPINT machen ? on Mon, 03 Jul 2006 12:37:08 GMT]]></title><description><![CDATA[<p>pctrlLstView-&gt;SetColumnOrderArray(iColumns,(lp_OrderArray));</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1090678</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1090678</guid><dc:creator><![CDATA[dedidado2]]></dc:creator><pubDate>Mon, 03 Jul 2006 12:37:08 GMT</pubDate></item><item><title><![CDATA[Reply to Anfänger: Wie aus String LPINT machen ? on Mon, 03 Jul 2006 12:49:54 GMT]]></title><description><![CDATA[<p>AFAIK beginnt der Index aber mit 0!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1090684</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1090684</guid><dc:creator><![CDATA[Jochen Kalmbach]]></dc:creator><pubDate>Mon, 03 Jul 2006 12:49:54 GMT</pubDate></item><item><title><![CDATA[Reply to Anfänger: Wie aus String LPINT machen ? on Mon, 03 Jul 2006 14:50:37 GMT]]></title><description><![CDATA[<p>Hab doch bei null angefangen !?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1090752</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1090752</guid><dc:creator><![CDATA[dedidado]]></dc:creator><pubDate>Mon, 03 Jul 2006 14:50:37 GMT</pubDate></item><item><title><![CDATA[Reply to Anfänger: Wie aus String LPINT machen ? on Wed, 05 Jul 2006 09:04:08 GMT]]></title><description><![CDATA[<p>Hallöchen, hat keiner mehr ne idee ?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1091618</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1091618</guid><dc:creator><![CDATA[dedidado2]]></dc:creator><pubDate>Wed, 05 Jul 2006 09:04:08 GMT</pubDate></item></channel></rss>