<?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[dynamisches typedef]]></title><description><![CDATA[<p>Hi ihr...</p>
<p>Ich glaube nicht, dass das geht, aber ich frag trotzdem mal:</p>
<p>Ich habe eine *.ini - Datei und möchte, je nach dem, wie der Wert dort ist, ein typedef verändern bzw erstellen...</p>
<p>In etwa so:</p>
<pre><code>switch (ini_wert)
{
8: typedef unsigned __int8 myvar; break;
16: typedef unsigned __int16 myvar; break;
32: //...
64: //...
default: //....
}
</code></pre>
<p>Geht das überhaupt irgendwie?</p>
<p>wahrscheinlich nur so in etwa:</p>
<pre><code>typedef unsigned __int8 myvar8; break;
typedef unsigned __int16 myvar16; break;
//... myvar32
//... myvar64
//....myvard
</code></pre>
<p>und dann bei jedem mal in der variable schreiben/lesen/... wieder gucken, wie der ini_wert ist? naja so, oder ähnlich umfangreich wird sich das in meinem fall nicht mehr lohnen...</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/205294/dynamisches-typedef</link><generator>RSS for Node</generator><lastBuildDate>Thu, 08 Oct 2026 22:13:48 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/205294.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 12 Feb 2008 17:28:32 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to dynamisches typedef on Tue, 12 Feb 2008 17:30:14 GMT]]></title><description><![CDATA[<p>Hi ihr...</p>
<p>Ich glaube nicht, dass das geht, aber ich frag trotzdem mal:</p>
<p>Ich habe eine *.ini - Datei und möchte, je nach dem, wie der Wert dort ist, ein typedef verändern bzw erstellen...</p>
<p>In etwa so:</p>
<pre><code>switch (ini_wert)
{
8: typedef unsigned __int8 myvar; break;
16: typedef unsigned __int16 myvar; break;
32: //...
64: //...
default: //....
}
</code></pre>
<p>Geht das überhaupt irgendwie?</p>
<p>wahrscheinlich nur so in etwa:</p>
<pre><code>typedef unsigned __int8 myvar8; break;
typedef unsigned __int16 myvar16; break;
//... myvar32
//... myvar64
//....myvard
</code></pre>
<p>und dann bei jedem mal in der variable schreiben/lesen/... wieder gucken, wie der ini_wert ist? naja so, oder ähnlich umfangreich wird sich das in meinem fall nicht mehr lohnen...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1454594</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1454594</guid><dc:creator><![CDATA[unskilled]]></dc:creator><pubDate>Tue, 12 Feb 2008 17:30:14 GMT</pubDate></item><item><title><![CDATA[Reply to dynamisches typedef on Tue, 12 Feb 2008 17:55:01 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>Nein in C++ müßen alle Typen für Entwurfszeit fest definiert sein.</p>
<p>nis bald<br />
akari</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1454614</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1454614</guid><dc:creator><![CDATA[akari]]></dc:creator><pubDate>Tue, 12 Feb 2008 17:55:01 GMT</pubDate></item><item><title><![CDATA[Reply to dynamisches typedef on Tue, 12 Feb 2008 22:20:17 GMT]]></title><description><![CDATA[<p>na gut... schade...<br />
danke trotzdem : &gt;</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1454765</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1454765</guid><dc:creator><![CDATA[unskilled]]></dc:creator><pubDate>Tue, 12 Feb 2008 22:20:17 GMT</pubDate></item></channel></rss>