<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Marcelo's WebLog : Windows</title><link>http://blogs.msdn.com/marcelolr/archive/tags/Windows/default.aspx</link><description>Tags: Windows</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>Microsoft Web Platform &amp; You</title><link>http://blogs.msdn.com/marcelolr/archive/2009/12/03/microsoft-web-platform-you.aspx</link><pubDate>Thu, 03 Dec 2009 22:00:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9931105</guid><dc:creator>marcelolr</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.msdn.com/marcelolr/comments/9931105.aspx</comments><wfw:commentRss>http://blogs.msdn.com/marcelolr/commentrss.aspx?PostID=9931105</wfw:commentRss><description>&lt;P&gt;If you build web sites and applications, you owe it to yourself to check out the resources at &lt;A href="http://www.microsoft.com/web/"&gt;http://www.microsoft.com/web/&lt;/A&gt;&amp;nbsp;and to subscribe to the feed of the &lt;A href="http://blogs.msdn.com/webplatform/" mce_href="http://blogs.msdn.com/webplatform/"&gt;team blog&lt;/A&gt; to keep up to date with tools and capabilities. No reason to pass up on free software or to avoid leveraging the software you already have.&lt;/P&gt;
&lt;P&gt;Enjoy!&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9931105" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/marcelolr/archive/tags/Development/default.aspx">Development</category><category domain="http://blogs.msdn.com/marcelolr/archive/tags/Windows/default.aspx">Windows</category><category domain="http://blogs.msdn.com/marcelolr/archive/tags/Web/default.aspx">Web</category></item><item><title>Windows 7 - 7 Second Demos</title><link>http://blogs.msdn.com/marcelolr/archive/2009/10/24/windows-7-7-second-demos.aspx</link><pubDate>Sat, 24 Oct 2009 22:37:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9912511</guid><dc:creator>marcelolr</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.msdn.com/marcelolr/comments/9912511.aspx</comments><wfw:commentRss>http://blogs.msdn.com/marcelolr/commentrss.aspx?PostID=9912511</wfw:commentRss><description>&lt;P&gt;Very, very cute of showing off some new Windows love - it even fits my attention span.&lt;/P&gt;
&lt;P&gt;&lt;A href="http://www.microsoft.com/en/us/default.aspx"&gt;http://www.microsoft.com/en/us/default.aspx&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Don't know if this will still be around a few months from now, so for future reference, these are "7 second demos".&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9912511" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/marcelolr/archive/tags/Windows/default.aspx">Windows</category></item><item><title>XmlLite says: error C2146: syntax error : missing ';' before identifier 'IXmlReader'</title><link>http://blogs.msdn.com/marcelolr/archive/2009/06/05/xmllite-says-error-c2146-syntax-error-missing-before-identifier-ixmlreader.aspx</link><pubDate>Sat, 06 Jun 2009 00:00:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9688013</guid><dc:creator>marcelolr</dc:creator><slash:comments>2</slash:comments><comments>http://blogs.msdn.com/marcelolr/comments/9688013.aspx</comments><wfw:commentRss>http://blogs.msdn.com/marcelolr/commentrss.aspx?PostID=9688013</wfw:commentRss><description>&lt;P&gt;This is something that I've been asked more than once, and so here goes an answer that might help if you run into this.&lt;/P&gt;
&lt;P&gt;Let's say that you create a new project and borrow code or do something of the sort, and suddenly start getting an error message such as this one&lt;/P&gt;
&lt;P&gt;xmllite.h(49) : error C2146: syntax error : missing ';' before identifier 'IXmlReader'&lt;/P&gt;
&lt;P&gt;This typically points to a missing macro. You can fix this by adding this to your include headers:&lt;/P&gt;
&lt;P&gt;#include "objbase.h"&lt;/P&gt;
&lt;P&gt;If you're using Visual C++-style projects, this may already be included via stdafx.h including the Windows headers for you.&lt;/P&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9688013" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/marcelolr/archive/tags/Development/default.aspx">Development</category><category domain="http://blogs.msdn.com/marcelolr/archive/tags/XML/default.aspx">XML</category><category domain="http://blogs.msdn.com/marcelolr/archive/tags/Windows/default.aspx">Windows</category></item><item><title>How to set an XML attribute to an integer</title><link>http://blogs.msdn.com/marcelolr/archive/2009/03/02/how-to-set-an-xml-attribute-to-an-integer.aspx</link><pubDate>Tue, 03 Mar 2009 01:00:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9450137</guid><dc:creator>marcelolr</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.msdn.com/marcelolr/comments/9450137.aspx</comments><wfw:commentRss>http://blogs.msdn.com/marcelolr/commentrss.aspx?PostID=9450137</wfw:commentRss><description>&lt;P&gt;Edward discusses how to set an integer in the MSXML APIs in &lt;A href="http://social.msdn.microsoft.com/Forums/en-US/msxml/thread/5061f191-0ed0-431d-82da-f90a83f581e5" mce_href="http://social.msdn.microsoft.com/Forums/en-US/msxml/thread/5061f191-0ed0-431d-82da-f90a83f581e5"&gt;this thread&lt;/A&gt;. I wanted to provide the snippet of code necessary to do this on an attribute, using the very awesome wrappers generated by the Visual C++ #import directive.&lt;/P&gt;
&lt;P&gt;The catch is that becausae a VARIANT is passed in, you can actually use other variant types that can be converted to a string. Here it goes.&lt;/P&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;
&lt;DIV style="FONT-FAMILY: Consolas, Lucida Console, Courier New"&gt;
&lt;P&gt;#include&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#a31515 size=2&gt;&lt;FONT color=#a31515 size=2&gt;&amp;lt;windows.h&amp;gt;&lt;BR&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;#include&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#a31515 size=2&gt;&lt;FONT color=#a31515 size=2&gt;&amp;lt;iostream&amp;gt;&lt;BR&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;#include&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#a31515 size=2&gt;&lt;FONT color=#a31515 size=2&gt;&amp;lt;iomanip&amp;gt;&lt;BR&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;#import&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#a31515 size=2&gt;&lt;FONT color=#a31515 size=2&gt;"msxml6.dll"&lt;BR&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;&lt;BR&gt;...&amp;nbsp;&lt;BR&gt;&lt;BR&gt;void&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; sample()&lt;BR&gt;{&lt;BR&gt;&amp;nbsp; CoInitialize(0);&lt;BR&gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;{&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MSXML2::IXMLDOMDocument2Ptr the_document;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; the_document.CreateInstance(&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;__uuidof&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;(MSXML2::DOMDocument60));&lt;BR&gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; _variant_t val(3);&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MSXML2::IXMLDOMElementPtr the_element = the_document-&amp;gt;createElement(L&lt;/FONT&gt;&lt;FONT color=#a31515 size=2&gt;&lt;FONT color=#a31515 size=2&gt;"doc"&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;);&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; the_document-&amp;gt;documentElement = the_element;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; the_element-&amp;gt;setAttribute(L&lt;/FONT&gt;&lt;FONT color=#a31515 size=2&gt;&lt;FONT color=#a31515 size=2&gt;"attribute"&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;, val);&lt;BR&gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/FONT&gt;&lt;FONT color=#008000 size=2&gt;&lt;FONT color=#008000 size=2&gt;// Output:&lt;BR&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color=#008000 size=2&gt;&lt;FONT color=#008000 size=2&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; //&lt;BR&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color=#008000 size=2&gt;&lt;FONT color=#008000 size=2&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // XML:&lt;BR&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color=#008000 size=2&gt;&lt;FONT color=#008000 size=2&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // &amp;lt;doc attribute="3"/&amp;gt;&lt;BR&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; std::wcout &amp;lt;&amp;lt; L&lt;/FONT&gt;&lt;FONT color=#a31515 size=2&gt;&lt;FONT color=#a31515 size=2&gt;"XML:"&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; &amp;lt;&amp;lt; std::endl &amp;lt;&amp;lt; the_document-&amp;gt;xml;&lt;BR&gt;&amp;nbsp; }&lt;BR&gt;&lt;BR&gt;&amp;nbsp; CoUninitialize();&lt;BR&gt;}&lt;/FONT&gt;&lt;/P&gt;&lt;/DIV&gt;
&lt;P&gt;Note that all interfaces will be released, and even the BSTR returned by the &lt;EM&gt;xml&lt;/EM&gt; property is wrapper in a _bstr_t, so it's released when it goes out of scope. In fact, the extra pair of curly braces are there to make sure that everything gets release before the call to &lt;EM&gt;CoUninitialize&lt;/EM&gt;.&lt;/P&gt;
&lt;P&gt;Enjoy!&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9450137" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/marcelolr/archive/tags/Development/default.aspx">Development</category><category domain="http://blogs.msdn.com/marcelolr/archive/tags/XML/default.aspx">XML</category><category domain="http://blogs.msdn.com/marcelolr/archive/tags/Windows/default.aspx">Windows</category></item><item><title>Gorgeous typography in Windows 7</title><link>http://blogs.msdn.com/marcelolr/archive/2009/02/17/gorgeous-typography-in-windows-7.aspx</link><pubDate>Wed, 18 Feb 2009 01:00:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9419664</guid><dc:creator>marcelolr</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.msdn.com/marcelolr/comments/9419664.aspx</comments><wfw:commentRss>http://blogs.msdn.com/marcelolr/commentrss.aspx?PostID=9419664</wfw:commentRss><description>&lt;P&gt;Gorgeous text is something I have &lt;A href="http://blogs.msdn.com/marcelolr/archive/2005/04/07/406331.aspx" mce_href="http://blogs.msdn.com/marcelolr/archive/2005/04/07/406331.aspx"&gt;long been passionate about&lt;/A&gt;. &lt;A href="http://blogs.msdn.com/e7/archive/2009/02/13/advances-in-typography-and-text-rendering-in-windows-7.aspx" mce_href="http://blogs.msdn.com/e7/archive/2009/02/13/advances-in-typography-and-text-rendering-in-windows-7.aspx"&gt;This recent Engineering Windows 7 blog post&lt;/A&gt; talks about Windows 7 improvements in text rendering and typography.&lt;/P&gt;
&lt;P&gt;I love the variations on the Gabriola font, and the stuff they do with the Valentines sample is amazing - note how the beginning-of-word and end-of-word flourishes change depending on whether the word is at the beginning, middle or end of the line. Very cool.&lt;/P&gt;
&lt;P&gt;A big shout out to Worachai, who worked with text rendering on WPF/Avalon many years ago, back when I was testing text editing (and we had all sorts of fun trying to figure out what the correct placement and size for the text box caret should be with highly stylized text).&lt;/P&gt;
&lt;P&gt;Enjoy!&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9419664" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/marcelolr/archive/tags/WPF/default.aspx">WPF</category><category domain="http://blogs.msdn.com/marcelolr/archive/tags/Windows/default.aspx">Windows</category></item><item><title>Kylie - rookie superstar</title><link>http://blogs.msdn.com/marcelolr/archive/2009/02/14/kylie-rookie-superstar.aspx</link><pubDate>Sun, 15 Feb 2009 01:00:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9422216</guid><dc:creator>marcelolr</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.msdn.com/marcelolr/comments/9422216.aspx</comments><wfw:commentRss>http://blogs.msdn.com/marcelolr/commentrss.aspx?PostID=9422216</wfw:commentRss><description>&lt;P&gt;In case you haven't seen the ads on TV, it turns out that Kylie (4 1/2) can you show in a few seconds of ultra-cuteness how to auto-correct a picture and send it to your family.&lt;/P&gt;
&lt;P&gt;&lt;A href="http://www.microsoft.com/windows/rookies/kylie4/"&gt;http://www.microsoft.com/windows/rookies/kylie4/&lt;/A&gt;&lt;/P&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9422216" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/marcelolr/archive/tags/Windows/default.aspx">Windows</category></item><item><title>So long FolderShare - hello Windows Live Sync</title><link>http://blogs.msdn.com/marcelolr/archive/2008/11/25/so-long-foldershare-hello-windows-live-sync.aspx</link><pubDate>Wed, 26 Nov 2008 01:00:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9132114</guid><dc:creator>marcelolr</dc:creator><slash:comments>2</slash:comments><comments>http://blogs.msdn.com/marcelolr/comments/9132114.aspx</comments><wfw:commentRss>http://blogs.msdn.com/marcelolr/commentrss.aspx?PostID=9132114</wfw:commentRss><description>&lt;P&gt;In case you haven't heard, FolderShare will be going into retirement at some point, and Windows Live Sync, to be announced next month, will be the software you'll probable want to move to.&lt;/P&gt;
&lt;P&gt;For more details, the announcement is on the FolderShare site here:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://www.foldershare.com/syncpro.htm"&gt;http://www.foldershare.com/syncpro.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Also, if you're a user of FolderShare you've probably received an email by now, although mine got stuck in my Junk Mail folder for some reason.&lt;/P&gt;
&lt;P&gt;Note: No, I don't work for FolderShare nor Windows Live Sync - I'm just a happy user. I thought I'd pass the word along, though.&lt;/P&gt;
&lt;P&gt;And if you're looking for something along the lines of "keeping stuff in sync", don't forget to look at &lt;A class="" href="http://www.microsoft.com/downloads/details.aspx?FamilyID=c26efa36-98e0-4ee9-a7c5-98d0592d8c52&amp;amp;DisplayLang=en" mce_href="http://www.microsoft.com/downloads/details.aspx?FamilyID=c26efa36-98e0-4ee9-a7c5-98d0592d8c52&amp;amp;DisplayLang=en"&gt;SyncToy&lt;/A&gt;, which may cover your needs as well, in particular anything that has to do with keeping files and folders in sync.&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9132114" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/marcelolr/archive/tags/Windows/default.aspx">Windows</category></item><item><title>AtBroker.exe failed to initialize properly message</title><link>http://blogs.msdn.com/marcelolr/archive/2008/11/24/atbroker-exe-failed-to-initialize-properly-message.aspx</link><pubDate>Tue, 25 Nov 2008 01:00:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9127356</guid><dc:creator>marcelolr</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.msdn.com/marcelolr/comments/9127356.aspx</comments><wfw:commentRss>http://blogs.msdn.com/marcelolr/commentrss.aspx?PostID=9127356</wfw:commentRss><description>&lt;P&gt;If you get this error message while logging in to a Windows Vista computer using Terminal Services, here is the magic sauce.&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.msdn.com/spatdsg/archive/2007/03/14/atbroker-exe-application-error.aspx"&gt;http://blogs.msdn.com/spatdsg/archive/2007/03/14/atbroker-exe-application-error.aspx&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;I don't know anything about the problem to be honest, but the solution (Ctrl+Alt+End, log off, cancel log-off if there's any prompting) has worked for me, so I thought I'd pass the link along...&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9127356" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/marcelolr/archive/tags/Windows/default.aspx">Windows</category></item></channel></rss>