<?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 Steven Engelhardt</title>
	<atom:link href="http://www.deez.info/sengelha/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.deez.info/sengelha</link>
	<description>A financial industry software developer's thoughts and insights</description>
	<pubDate>Thu, 08 Jan 2009 22:07:54 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>Comment on STL objects and module boundaries by klaus triendl</title>
		<link>http://www.deez.info/sengelha/2008/01/04/stl-objects-and-module-boundaries/comment-page-1/#comment-1256</link>
		<dc:creator>klaus triendl</dc:creator>
		<pubDate>Sat, 15 Nov 2008 19:03:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.deez.info/sengelha/blog/2008/01/04/stl-objects-and-module-boundaries/#comment-1256</guid>
		<description>&#62; Steve:
&#62; The only case where this works is if the object carries around its own allocator

Because all stl-containers carry around their own allocator it is possible to pass stl containers across module boundaries. And here is how it works:
I've written an allocator that stores the translation unit's default raw allocation/deallocation operators (::operator new/::operator delete).
I called this allocator modulebound_allocator. Because it's a stateful allocator there are certain things to consider when copying/moving the container, though, but it works great for strings in a larger software project.</description>
		<content:encoded><![CDATA[<p>&gt; Steve:<br />
&gt; The only case where this works is if the object carries around its own allocator</p>
<p>Because all stl-containers carry around their own allocator it is possible to pass stl containers across module boundaries. And here is how it works:<br />
I&#8217;ve written an allocator that stores the translation unit&#8217;s default raw allocation/deallocation operators (::operator new/::operator delete).<br />
I called this allocator modulebound_allocator. Because it&#8217;s a stateful allocator there are certain things to consider when copying/moving the container, though, but it works great for strings in a larger software project.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Generating and Parsing Localized Numbers In Windows by Anagha</title>
		<link>http://www.deez.info/sengelha/2007/07/11/generating-and-parsing-localized-numbers-in-windows/comment-page-1/#comment-1255</link>
		<dc:creator>Anagha</dc:creator>
		<pubDate>Thu, 13 Nov 2008 08:08:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.deez.info/sengelha/blog/2007/07/11/generating-and-parsing-localized-numbers-in-windows/#comment-1255</guid>
		<description>How to parse a number using locale id in C++?
I want to validate a string entered to check if its a number based on the locale selected?

GetNumberFormat as stated above, converts the string passed to the number as per the locale passed.
However, i want a method which would return a bool telling me if the string entered is a correct number as per the locale.

Thanks.</description>
		<content:encoded><![CDATA[<p>How to parse a number using locale id in C++?<br />
I want to validate a string entered to check if its a number based on the locale selected?</p>
<p>GetNumberFormat as stated above, converts the string passed to the number as per the locale passed.<br />
However, i want a method which would return a bool telling me if the string entered is a correct number as per the locale.</p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on STL Vector Use by Rupin Pavithran</title>
		<link>http://www.deez.info/sengelha/2007/01/23/stl-vector-use/comment-page-1/#comment-1249</link>
		<dc:creator>Rupin Pavithran</dc:creator>
		<pubDate>Tue, 28 Oct 2008 17:37:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.deez.info/sengelha/blog/2007/01/23/stl-vector-use/#comment-1249</guid>
		<description>Hi Steven,
I have a question not exactly on STL vectors but on STL map. I have a map entry with each key refering to another map. like this 

vector tVidVector;
map tObjMap; 
map tOMap; 

I want to know is it possible to copy the entry from the map, tOMap to another map of same type using the copy operation or some other way. 

thanks,
Rupin</description>
		<content:encoded><![CDATA[<p>Hi Steven,<br />
I have a question not exactly on STL vectors but on STL map. I have a map entry with each key refering to another map. like this </p>
<p>vector tVidVector;<br />
map tObjMap;<br />
map tOMap; </p>
<p>I want to know is it possible to copy the entry from the map, tOMap to another map of same type using the copy operation or some other way. </p>
<p>thanks,<br />
Rupin</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Custom-Drawn Tooltips by Paul Sanders</title>
		<link>http://www.deez.info/sengelha/2007/08/28/custom-drawn-tooltips/comment-page-1/#comment-1247</link>
		<dc:creator>Paul Sanders</dc:creator>
		<pubDate>Sun, 07 Sep 2008 11:20:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.deez.info/sengelha/blog/2007/08/28/owner-drawn-tooltips/#comment-1247</guid>
		<description>Hello again,

Further to my previous post ... I have found that you can reduce the size of the tooltip window by the method I described, but you cannot increase it (!!).  So Steven is right after all - you have to resize the window yourself at the critical moment.  Sorry about that.

There's a nicer way to stop the tooltip from drawing its own text though - do all your painting in CDDS_PREPAINT and return CDRF_SKIPDEFAULT.  The tooltip then gracefully steps aside (which is about the only thing it does do gracefully).  This opens the door to fancy backgrounds, for example.</description>
		<content:encoded><![CDATA[<p>Hello again,</p>
<p>Further to my previous post &#8230; I have found that you can reduce the size of the tooltip window by the method I described, but you cannot increase it (!!).  So Steven is right after all - you have to resize the window yourself at the critical moment.  Sorry about that.</p>
<p>There&#8217;s a nicer way to stop the tooltip from drawing its own text though - do all your painting in CDDS_PREPAINT and return CDRF_SKIPDEFAULT.  The tooltip then gracefully steps aside (which is about the only thing it does do gracefully).  This opens the door to fancy backgrounds, for example.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Spot-Futures Convergence Failures by day4nightly</title>
		<link>http://www.deez.info/sengelha/2008/04/09/spot-futures-convergence-failures/comment-page-1/#comment-1246</link>
		<dc:creator>day4nightly</dc:creator>
		<pubDate>Sat, 06 Sep 2008 22:55:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.deez.info/sengelha/2008/04/09/spot-futures-convergence-failures/#comment-1246</guid>
		<description>Is it possible that there's free money sitting around for arbitrageurs -- that the growth in commodity trading hasn't seen a similar growth in physical/futures arbitrageurs?</description>
		<content:encoded><![CDATA[<p>Is it possible that there&#8217;s free money sitting around for arbitrageurs &#8212; that the growth in commodity trading hasn&#8217;t seen a similar growth in physical/futures arbitrageurs?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Custom-Drawn Tooltips by Paul Sanders</title>
		<link>http://www.deez.info/sengelha/2007/08/28/custom-drawn-tooltips/comment-page-1/#comment-1245</link>
		<dc:creator>Paul Sanders</dc:creator>
		<pubDate>Sat, 06 Sep 2008 16:59:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.deez.info/sengelha/blog/2007/08/28/owner-drawn-tooltips/#comment-1245</guid>
		<description>I think I might know the answer to that one.  The NM_CUSTOMDRAW handler should not resize the window itself.  Instead, it should inspect the uDrawFlags member of the NMTTCUSTOMDRAW structure passed in.  If this contains DT_CALCRECT then the tooltip window is asking the handler to calculate the size of the text (or whatever) to be displayed, which the handler can do by updating the rc member of the NMTTCUSTOMDRAW structure.

Sneaky, eh?  I'm not sure if it works 100% though as the tooltip window seems to carry out some additional calculations of its own so a bit of experimentation might be in order.

Paul Sanders
http://www.alpinesoft.co.uk</description>
		<content:encoded><![CDATA[<p>I think I might know the answer to that one.  The NM_CUSTOMDRAW handler should not resize the window itself.  Instead, it should inspect the uDrawFlags member of the NMTTCUSTOMDRAW structure passed in.  If this contains DT_CALCRECT then the tooltip window is asking the handler to calculate the size of the text (or whatever) to be displayed, which the handler can do by updating the rc member of the NMTTCUSTOMDRAW structure.</p>
<p>Sneaky, eh?  I&#8217;m not sure if it works 100% though as the tooltip window seems to carry out some additional calculations of its own so a bit of experimentation might be in order.</p>
<p>Paul Sanders<br />
<a href="http://www.alpinesoft.co.uk" rel="nofollow">http://www.alpinesoft.co.uk</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Google&#8217;s Wonderful PR by Grin</title>
		<link>http://www.deez.info/sengelha/2008/09/02/googles-wonderful-pr/comment-page-1/#comment-1237</link>
		<dc:creator>Grin</dc:creator>
		<pubDate>Tue, 02 Sep 2008 15:53:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.deez.info/sengelha/?p=5492#comment-1237</guid>
		<description>Many UI features seem to be "inspired" by Opera, including the tabs-on-top feature. Opera has always been an MDI application.

But also the speed dial for new tabs, searching in the address bar (both using search engines and in the history), or adding custom search engines are Opera features.</description>
		<content:encoded><![CDATA[<p>Many UI features seem to be &#8220;inspired&#8221; by Opera, including the tabs-on-top feature. Opera has always been an MDI application.</p>
<p>But also the speed dial for new tabs, searching in the address bar (both using search engines and in the history), or adding custom search engines are Opera features.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Balloon Tooltips by Steve</title>
		<link>http://www.deez.info/sengelha/2008/06/12/balloon-tooltips/comment-page-1/#comment-1231</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Tue, 22 Jul 2008 03:12:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.deez.info/sengelha/?p=5477#comment-1231</guid>
		<description>Jared,

Perhaps you can subclass the HWND and capture the WM_CLOSE message.</description>
		<content:encoded><![CDATA[<p>Jared,</p>
<p>Perhaps you can subclass the HWND and capture the WM_CLOSE message.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Balloon Tooltips by Jared</title>
		<link>http://www.deez.info/sengelha/2008/06/12/balloon-tooltips/comment-page-1/#comment-1230</link>
		<dc:creator>Jared</dc:creator>
		<pubDate>Mon, 21 Jul 2008 20:22:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.deez.info/sengelha/?p=5477#comment-1230</guid>
		<description>The code worked fine for me, but I am curious to see how I could add a delegate for when the close button is pressed. I can destroy the window arbitrarily, but would like to set my HWND to null if the close button is pushed. Any idea?</description>
		<content:encoded><![CDATA[<p>The code worked fine for me, but I am curious to see how I could add a delegate for when the close button is pressed. I can destroy the window arbitrarily, but would like to set my HWND to null if the close button is pushed. Any idea?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Generating and Parsing Localized Numbers In Windows by amir</title>
		<link>http://www.deez.info/sengelha/2007/07/11/generating-and-parsing-localized-numbers-in-windows/comment-page-1/#comment-1228</link>
		<dc:creator>amir</dc:creator>
		<pubDate>Wed, 16 Jul 2008 13:18:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.deez.info/sengelha/blog/2007/07/11/generating-and-parsing-localized-numbers-in-windows/#comment-1228</guid>
		<description>thanks , i had a problem only on the grouping value . this link was very helpful</description>
		<content:encoded><![CDATA[<p>thanks , i had a problem only on the grouping value . this link was very helpful</p>
]]></content:encoded>
	</item>
</channel>
</rss>
