<?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 - Win32 - Comments</title>
 <link>https://mg.to/topics/programming/win32.html</link>
 <description>Comments for &quot;Win32&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>It could be any of the reasons that you might have structured th</title>
 <link>https://mg.to/2004/08/12/null-hinstance-considered-harmful#comment-28</link>
 <description>&lt;p&gt;It could be any of the reasons that you might have structured the code as a large DLL and stub EXE in the first place. For example, you may want to make some of your code available to other apps with an in-process COM server or DLL interface.&lt;/p&gt;

&lt;p&gt;Or it may be a case like the Python interpreter, where &lt;code&gt;python.exe&lt;/code&gt; is a console app and &lt;code&gt;pythonw.exe&lt;/code&gt; is a GUI app. Each of these is a small stub that loads Python23.dll, the Python interpreter itself.&lt;/p&gt;

&lt;p&gt;Basically anything like that, where you might want to have a couple of different versions of the .exe itself but have most of the code shared between them. It could even be something as trivial as needing to run two instances of your app for different purposes but wanting them to show up with different names in Task Manager.&lt;/p&gt;</description>
 <pubDate>Thu, 12 Aug 2004 15:33:17 +0000</pubDate>
 <dc:creator>Michael Geary</dc:creator>
 <guid isPermaLink="false">comment 28 at https://mg.to</guid>
</item>
<item>
 <title>I&#039;m curious why you&#039;d want to do the conversion...</title>
 <link>https://mg.to/2004/08/12/null-hinstance-considered-harmful#comment-27</link>
 <description>&lt;p&gt;I&amp;#8217;m curious why you&amp;#8217;d want to do the conversion&amp;#8230; The only reason that comes to mind would be to implement a &amp;#8220;check for updates&amp;#8221; feature in the EXE that can replace the core of the app on the fly without file-in-use issues. Well, as I&amp;#8217;m typing this, also maybe loading a version of your app compiled for a specific OS (like a Unicode-only version). Are there any other good reasons?&lt;/p&gt;</description>
 <pubDate>Thu, 12 Aug 2004 07:15:11 +0000</pubDate>
 <dc:creator>Mike Sax</dc:creator>
 <guid isPermaLink="false">comment 27 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>
