<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="https://mg.to" xmlns:dc="https://purl.org/dc/elements/1.1/">
<channel>
 <title>mg.to - C/C++ - Comments</title>
 <link>https://mg.to/topics/programming/c-c</link>
 <description>Comments for &quot;C/C++&quot;</description>
 <language>en</language>
<item>
 <title>Building Win32 guitest</title>
 <link>https://mg.to/2004/08/09/ruby-iterators-and-c-callback-functions#comment-4453</link>
 <description>&lt;p&gt;Building win32 guitest in May of 2007 is non-trivial.  I posted a recipie at &lt;a href=&quot;https://www.kleinfelter.com/build-ruby-guitest-win32&quot;&gt;https://www.kleinfelter.com/build-ruby-guitest-win32&lt;/a&gt;&lt;/p&gt;</description>
 <pubDate>Fri, 25 May 2007 01:28:58 +0000</pubDate>
 <dc:creator>Visitor</dc:creator>
 <guid isPermaLink="false">comment 4453 at https://mg.to</guid>
</item>
<item>
 <title>Hi Frank! :-) Yep, I&#039;m stuck with Ruby forever, I guess.</title>
 <link>https://mg.to/2004/08/09/ruby-iterators-and-c-callback-functions#comment-20</link>
 <description>&lt;p&gt;Hi Frank! :-) Yep, I&amp;#8217;m stuck with Ruby forever, I guess.&lt;/p&gt;

&lt;p&gt;Anyone who wonders what the heck Frank is talking about, here is &lt;a href=&quot;https://www.cooper.com/alan/father_of_vb.html&quot;&gt;the full story&lt;/a&gt;.&lt;/p&gt;</description>
 <pubDate>Wed, 01 Sep 2004 21:45:04 +0000</pubDate>
 <dc:creator>Michael Geary</dc:creator>
 <guid isPermaLink="false">comment 20 at https://mg.to</guid>
</item>
<item>
 <title>I like to use:</title>
 <link>https://mg.to/2004/08/07/use-elementsof-not-sizeof#comment-18</link>
 <description>&lt;p&gt;I like to use:&lt;/p&gt;

&lt;div style=&quot;padding: 5px !important; border: 1px solid rgb(253,187,134) !important; background-color: rgb(255,253,245) !important; font-family: Verdana,sans-serif !important;&quot;&gt;&lt;div style=&quot;background-color: rgb(255,250,238) !important;&quot;&gt;&lt;div class=&quot;geshi-cpp&quot;&gt;&lt;div style=&quot;background-color:rgb(255,234,216);&quot;&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;template&lt;/span&gt; &amp;lt;class T, &lt;span style=&quot;color: #0000ff;&quot;&gt;unsigned&lt;/span&gt; S&amp;gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;char&lt;/span&gt; &lt;span style=&quot;color: #000000;color: #0000FF;&quot;&gt;&amp;#40;&lt;/span&gt;&amp;amp; lengthof&lt;span style=&quot;color: #000000;color: #0000FF;&quot;&gt;&amp;#40;&lt;/span&gt;T &lt;span style=&quot;color: #000000;color: #0000FF;&quot;&gt;&amp;#40;&lt;/span&gt;&amp;amp;&lt;span style=&quot;color: #000000;color: #0000FF;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #000000;color: #0000FF;&quot;&gt;&amp;#91;&lt;/span&gt;S&lt;span style=&quot;color: #000000;color: #0000FF;&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span style=&quot;color: #000000;color: #0000FF;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #000000;color: #0000FF;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #000000;color: #0000FF;&quot;&gt;&amp;#91;&lt;/span&gt;S&lt;span style=&quot;color: #000000;color: #0000FF;&quot;&gt;&amp;#93;&lt;/span&gt;;&lt;br /&gt;&lt;/div&gt;
&lt;span style=&quot;color: #339900;&quot;&gt;#define lengthof(a) (sizeof(lengthof(a))) &lt;/span&gt;&lt;br /&gt;
&amp;nbsp;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;That way it protects against doing a lengthof on a pointer instead of an array. Doesn&amp;#8217;t work for local types though because of the way C++ templates work but you run into those rarely and easy to work around.&lt;/p&gt;
</description>
 <pubDate>Mon, 23 Aug 2004 17:53:31 +0000</pubDate>
 <dc:creator>asdf</dc:creator>
 <guid isPermaLink="false">comment 18 at https://mg.to</guid>
</item>
<item>
 <title>Just can&#039;t get away from that</title>
 <link>https://mg.to/2004/08/09/ruby-iterators-and-c-callback-functions#comment-19</link>
 <description>&lt;p&gt;Just can&amp;#8217;t get away from that Ruby code, eh, Mike?&lt;/p&gt;</description>
 <pubDate>Tue, 17 Aug 2004 23:33:41 +0000</pubDate>
 <dc:creator>Frank</dc:creator>
 <guid isPermaLink="false">comment 19 at https://mg.to</guid>
</item>
<item>
 <title>Thanks for the sharp eye, Stephanie.</title>
 <link>https://mg.to/2004/08/07/use-elementsof-not-sizeof#comment-17</link>
 <description>&lt;p&gt;Thanks for the sharp eye, Stephanie. That&amp;#8217;s what I get for posting in the wee hours! Fixed now.&lt;/p&gt;</description>
 <pubDate>Sat, 07 Aug 2004 10:07:58 +0000</pubDate>
 <dc:creator>Michael Geary</dc:creator>
 <guid isPermaLink="false">comment 17 at https://mg.to</guid>
</item>
<item>
 <title>Small typo in the last code bl</title>
 <link>https://mg.to/2004/08/07/use-elementsof-not-sizeof#comment-16</link>
 <description>&lt;p&gt;Small typo in the last code block: elementsof(pszPath) should be elementsof(szPath).&lt;/p&gt;</description>
 <pubDate>Sat, 07 Aug 2004 07:18:24 +0000</pubDate>
 <dc:creator>Stephane Lajoie</dc:creator>
 <guid isPermaLink="false">comment 16 at https://mg.to</guid>
</item>
</channel>
</rss>
