<?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[c++ Datentypen-Problem]]></title><description><![CDATA[<p>Hallo Ich bin neu im c++ Programmieren.<br />
Jetzt habe ich hier eine Methode, der u.a. eine PortNummer und ein Login übergeben werden. Code:</p>
<pre><code class="language-cpp">Invoke_Method_Status Device_Provider::setPort(
    const Device* self,
    const Property&lt;uint8&gt;&amp; Port
    const Property&lt;String&gt;&amp; Login)
{
      switchport = Port;
}
</code></pre>
<p>Mein Problem ist der folgende Error:</p>
<blockquote>
<p>cannot convert const cimple::Property&lt;unsigned char&gt; to int in assignment</p>
</blockquote>
<p>Ich verstehe nicht, der Parameter ist doch ein uint und kein unsigned char??<br />
Danke für eure Hilfe.<br />
Grüße, rob</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/289661/c-datentypen-problem</link><generator>RSS for Node</generator><lastBuildDate>Wed, 19 Aug 2026 00:58:51 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/289661.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 10 Jul 2011 13:19:28 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to c++ Datentypen-Problem on Sun, 10 Jul 2011 13:19:28 GMT]]></title><description><![CDATA[<p>Hallo Ich bin neu im c++ Programmieren.<br />
Jetzt habe ich hier eine Methode, der u.a. eine PortNummer und ein Login übergeben werden. Code:</p>
<pre><code class="language-cpp">Invoke_Method_Status Device_Provider::setPort(
    const Device* self,
    const Property&lt;uint8&gt;&amp; Port
    const Property&lt;String&gt;&amp; Login)
{
      switchport = Port;
}
</code></pre>
<p>Mein Problem ist der folgende Error:</p>
<blockquote>
<p>cannot convert const cimple::Property&lt;unsigned char&gt; to int in assignment</p>
</blockquote>
<p>Ich verstehe nicht, der Parameter ist doch ein uint und kein unsigned char??<br />
Danke für eure Hilfe.<br />
Grüße, rob</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2090959</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2090959</guid><dc:creator><![CDATA[rob-the-fish]]></dc:creator><pubDate>Sun, 10 Jul 2011 13:19:28 GMT</pubDate></item><item><title><![CDATA[Reply to c++ Datentypen-Problem on Sun, 10 Jul 2011 13:42:46 GMT]]></title><description><![CDATA[<p>Lies genauer: <code>Port</code> ist ein <code>const cimple::Property&lt;unsigned char&gt;</code> . Und der Compiler sagt dir, dass er das nicht in einen int (was anscheinend er Typ von <code>switchport</code> ist) kovertieren kann. Mehr kann man ohne Code nicht sagen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2090975</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2090975</guid><dc:creator><![CDATA[SeppJ]]></dc:creator><pubDate>Sun, 10 Jul 2011 13:42:46 GMT</pubDate></item></channel></rss>