<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments for Bill Zitomer</title>
	<atom:link href="http://zitomerconsulting.com/blog/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://zitomerconsulting.com/blog</link>
	<description>C++ Programming and other random endeavors</description>
	<lastBuildDate>Thu, 30 Oct 2008 22:14:17 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>Comment on Export from WordPress by Bill Zitomer</title>
		<link>http://zitomerconsulting.com/blog/2008/10/30/export-from-wordpress/comment-page-1/#comment-710</link>
		<dc:creator>Bill Zitomer</dc:creator>
		<pubDate>Thu, 30 Oct 2008 22:14:17 +0000</pubDate>
		<guid isPermaLink="false">http://zitomerconsulting.com/blog/?p=14#comment-710</guid>
		<description>Gah, my tags are still there. This tag cloud in the side bar doesn&#039;t seem to recognize them though.</description>
		<content:encoded><![CDATA[<p>Gah, my tags are still there. This tag cloud in the side bar doesn&#8217;t seem to recognize them though.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Dealing with Vista&#8217;s Low Cookies by Bill Zitomer</title>
		<link>http://zitomerconsulting.com/blog/2007/09/11/dealing-with-vistas-low-integrity-cookies/comment-page-1/#comment-6</link>
		<dc:creator>Bill Zitomer</dc:creator>
		<pubDate>Thu, 27 Dec 2007 15:03:31 +0000</pubDate>
		<guid isPermaLink="false">http://zitomerconsulting.com/WordPress/?p=3#comment-6</guid>
		<description>You&#039;ll need to install the SDK for Vista to get the new structs: http://www.microsoft.com/downloads/details.aspx?familyid=4377f86d-c913-4b5c-b87e-ef72e5b4e065&amp;displaylang=en. Keep in mind that some API functions won&#039;t work on other versions of Windows. I had to make some calls runtime linked after checking if running on Vista or not.</description>
		<content:encoded><![CDATA[<p>You&#8217;ll need to install the SDK for Vista to get the new structs: <a href="http://www.microsoft.com/downloads/details.aspx?familyid=4377f86d-c913-4b5c-b87e-ef72e5b4e065&#038;displaylang=en" rel="nofollow">http://www.microsoft.com/downloads/details.aspx?familyid=4377f86d-c913-4b5c-b87e-ef72e5b4e065&#038;displaylang=en</a>. Keep in mind that some API functions won&#8217;t work on other versions of Windows. I had to make some calls runtime linked after checking if running on Vista or not.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Dealing with Vista&#8217;s Low Cookies by Bob Zhong</title>
		<link>http://zitomerconsulting.com/blog/2007/09/11/dealing-with-vistas-low-integrity-cookies/comment-page-1/#comment-5</link>
		<dc:creator>Bob Zhong</dc:creator>
		<pubDate>Thu, 27 Dec 2007 08:48:31 +0000</pubDate>
		<guid isPermaLink="false">http://zitomerconsulting.com/WordPress/?p=3#comment-5</guid>
		<description>hi, Bill Zitomer
    Thanks for you article, it&#039;s very useful to me. But There have a problem.  I write the code to run  low integrity mode from msdn in step 2, and the structure  TOKEN_MANDATORY_LABEL is undeclare identify. I include the header of windows.h. But it seems no use.  Hope you can give me same advice. Thank you!  waitting for you respones.</description>
		<content:encoded><![CDATA[<p>hi, Bill Zitomer<br />
    Thanks for you article, it&#8217;s very useful to me. But There have a problem.  I write the code to run  low integrity mode from msdn in step 2, and the structure  TOKEN_MANDATORY_LABEL is undeclare identify. I include the header of windows.h. But it seems no use.  Hope you can give me same advice. Thank you!  waitting for you respones.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on MFC and Multiple Inheritance by Bill Zitomer</title>
		<link>http://zitomerconsulting.com/blog/2007/10/11/mfc-and-multiple-inheritance/comment-page-1/#comment-115</link>
		<dc:creator>Bill Zitomer</dc:creator>
		<pubDate>Fri, 12 Oct 2007 16:46:38 +0000</pubDate>
		<guid isPermaLink="false">http://zitomerconsulting.com/WordPress/2007/10/11/mfc-and-multiple-inheritance/#comment-115</guid>
		<description>I know, not my choice to use MFC either. Yeah I saw your name on Steve&#039;s blogroll. Thanks for the conversation! :)</description>
		<content:encoded><![CDATA[<p>I know, not my choice to use MFC either. Yeah I saw your name on Steve&#8217;s blogroll. Thanks for the conversation! <img src='http://zitomerconsulting.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Deleting Browser History by Bill Zitomer</title>
		<link>http://zitomerconsulting.com/blog/2007/10/12/deleting-browser-history/comment-page-1/#comment-678</link>
		<dc:creator>Bill Zitomer</dc:creator>
		<pubDate>Fri, 12 Oct 2007 16:44:06 +0000</pubDate>
		<guid isPermaLink="false">http://zitomerconsulting.com/WordPress/2007/10/12/deleting-browser-history/#comment-678</guid>
		<description>That&#039;s a good point, I&#039;ve seen that section but never thought to write to it.</description>
		<content:encoded><![CDATA[<p>That&#8217;s a good point, I&#8217;ve seen that section but never thought to write to it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Deleting Browser History by Aaron Ballman</title>
		<link>http://zitomerconsulting.com/blog/2007/10/12/deleting-browser-history/comment-page-1/#comment-677</link>
		<dc:creator>Aaron Ballman</dc:creator>
		<pubDate>Fri, 12 Oct 2007 16:11:37 +0000</pubDate>
		<guid isPermaLink="false">http://zitomerconsulting.com/WordPress/2007/10/12/deleting-browser-history/#comment-677</guid>
		<description>It always sucks when the docs are vague, but you can use the community content to beg for clarification.  I&#039;ve seen them respond in there and modify the docs from it a few times, so it may be worth trying.  Won&#039;t help in the short term though.</description>
		<content:encoded><![CDATA[<p>It always sucks when the docs are vague, but you can use the community content to beg for clarification.  I&#8217;ve seen them respond in there and modify the docs from it a few times, so it may be worth trying.  Won&#8217;t help in the short term though.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on MFC and Multiple Inheritance by Aaron Ballman</title>
		<link>http://zitomerconsulting.com/blog/2007/10/11/mfc-and-multiple-inheritance/comment-page-1/#comment-114</link>
		<dc:creator>Aaron Ballman</dc:creator>
		<pubDate>Fri, 12 Oct 2007 16:03:42 +0000</pubDate>
		<guid isPermaLink="false">http://zitomerconsulting.com/WordPress/2007/10/11/mfc-and-multiple-inheritance/#comment-114</guid>
		<description>Weird...well, I&#039;ve always avoided MFC whenever possible, so this is entirely likely to be out of my scope.  I hate MFC and don&#039;t envy you!  ;-)

In any event, nice blog!  Steve pointed it out to me, in case you&#039;re wondering where I came from.  :-)</description>
		<content:encoded><![CDATA[<p>Weird&#8230;well, I&#8217;ve always avoided MFC whenever possible, so this is entirely likely to be out of my scope.  I hate MFC and don&#8217;t envy you!  <img src='http://zitomerconsulting.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p>In any event, nice blog!  Steve pointed it out to me, in case you&#8217;re wondering where I came from.  <img src='http://zitomerconsulting.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on MFC and Multiple Inheritance by Bill Zitomer</title>
		<link>http://zitomerconsulting.com/blog/2007/10/11/mfc-and-multiple-inheritance/comment-page-1/#comment-113</link>
		<dc:creator>Bill Zitomer</dc:creator>
		<pubDate>Fri, 12 Oct 2007 15:46:30 +0000</pubDate>
		<guid isPermaLink="false">http://zitomerconsulting.com/WordPress/2007/10/11/mfc-and-multiple-inheritance/#comment-113</guid>
		<description>Well, yeah, the virtual base class is what would make this work, but the problem is you get compile errors because of how MFC is implemented (something to do with the message mapping). That was one of the articles I linked (the one that says MI is not required for serious applications).

The reason I want to do it this way, is because 95% of the code for my control class is the same. It&#039;s mainly one method which reads the dialog control info from a file - the text, color, font, position, etc. So all of that code fits nicely in my base class, and from the outside I just need to call a generic LoadFromFile method, and the class does everything. The descendant classes can override this method to add any special items, like a flag for a checkbox for instance.

There are some other basic methods, like adding a bitmap, which one control might handle differently than another.

My solution to use GetCWnd() method to get the class ptr I need is not so bad. The thing I&#039;m more unhappy about is not being able to implement message handlers such as CtlColor and OnSetCursor in the base class. If I&#039;ve got 5 control classes, now I have 5 copies of the same handlers. I loathe redundant code, it keeps me up at night. :)</description>
		<content:encoded><![CDATA[<p>Well, yeah, the virtual base class is what would make this work, but the problem is you get compile errors because of how MFC is implemented (something to do with the message mapping). That was one of the articles I linked (the one that says MI is not required for serious applications).</p>
<p>The reason I want to do it this way, is because 95% of the code for my control class is the same. It&#8217;s mainly one method which reads the dialog control info from a file &#8211; the text, color, font, position, etc. So all of that code fits nicely in my base class, and from the outside I just need to call a generic LoadFromFile method, and the class does everything. The descendant classes can override this method to add any special items, like a flag for a checkbox for instance.</p>
<p>There are some other basic methods, like adding a bitmap, which one control might handle differently than another.</p>
<p>My solution to use GetCWnd() method to get the class ptr I need is not so bad. The thing I&#8217;m more unhappy about is not being able to implement message handlers such as CtlColor and OnSetCursor in the base class. If I&#8217;ve got 5 control classes, now I have 5 copies of the same handlers. I loathe redundant code, it keeps me up at night. <img src='http://zitomerconsulting.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Stoopid Intarweb by david</title>
		<link>http://zitomerconsulting.com/blog/2007/10/11/stoopid-intarweb/comment-page-1/#comment-671</link>
		<dc:creator>david</dc:creator>
		<pubDate>Fri, 12 Oct 2007 15:28:53 +0000</pubDate>
		<guid isPermaLink="false">http://zitomerconsulting.com/WordPress/2007/10/11/stoopid-intarweb/#comment-671</guid>
		<description>No problem ;)</description>
		<content:encoded><![CDATA[<p>No problem <img src='http://zitomerconsulting.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on MFC and Multiple Inheritance by Aaron Ballman</title>
		<link>http://zitomerconsulting.com/blog/2007/10/11/mfc-and-multiple-inheritance/comment-page-1/#comment-112</link>
		<dc:creator>Aaron Ballman</dc:creator>
		<pubDate>Fri, 12 Oct 2007 15:17:43 +0000</pubDate>
		<guid isPermaLink="false">http://zitomerconsulting.com/WordPress/2007/10/11/mfc-and-multiple-inheritance/#comment-112</guid>
		<description>Last thing first: check out this link to MSDN, specifically the Virtual and Nonvirtual Inheritance section.

http://msdn2.microsoft.com/en-us/library/wcz57btd(VS.80).aspx

I finally think I understand what you&#039;re after now though.  :-)  You have a bunch of CWnd controls (like CEdit, CButton, etc), but you also want them to inherit from your common set of &quot;Control&quot; functionality.  But your Control functionality wants to be a CWnd as well so it can manipulate the control as a base window object.  However, you can&#039;t make Control inherit from CWnd because of multiple vtables.  Basically correct?</description>
		<content:encoded><![CDATA[<p>Last thing first: check out this link to MSDN, specifically the Virtual and Nonvirtual Inheritance section.</p>
<p><a href="http://msdn2.microsoft.com/en-us/library/wcz57btd(VS.80).aspx" rel="nofollow">http://msdn2.microsoft.com/en-us/library/wcz57btd(VS.80).aspx</a></p>
<p>I finally think I understand what you&#8217;re after now though.  <img src='http://zitomerconsulting.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />   You have a bunch of CWnd controls (like CEdit, CButton, etc), but you also want them to inherit from your common set of &#8220;Control&#8221; functionality.  But your Control functionality wants to be a CWnd as well so it can manipulate the control as a base window object.  However, you can&#8217;t make Control inherit from CWnd because of multiple vtables.  Basically correct?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

