<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Visual C++ Tips &#187; Misc</title>
	<atom:link href="http://weseetips.com/category/misc/feed/" rel="self" type="application/rss+xml" />
	<link>http://weseetips.com</link>
	<description>Gold mine of Visual C++ tricks!</description>
	<lastBuildDate>Thu, 11 Mar 2010 09:09:08 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>How to convert CString to char* or LPTSTR?</title>
		<link>http://weseetips.com/2008/12/17/how-to-convert-cstring-to-char-or-lptstr/</link>
		<comments>http://weseetips.com/2008/12/17/how-to-convert-cstring-to-char-or-lptstr/#comments</comments>
		<pubDate>Wed, 17 Dec 2008 21:43:24 +0000</pubDate>
		<dc:creator>Jijo Raj</dc:creator>
				<category><![CDATA[MFC]]></category>
		<category><![CDATA[Misc]]></category>
		<category><![CDATA[cannot convert parameter 1 from 'class CString' to 'cha]]></category>
		<category><![CDATA[CString to char*]]></category>
		<category><![CDATA[CString to LPCTSTR]]></category>
		<category><![CDATA[CString to LPTSTR]]></category>
		<category><![CDATA[CString to LPWSTR]]></category>
		<category><![CDATA[CString to str]]></category>
		<category><![CDATA[CString to TCHAR*]]></category>
		<category><![CDATA[CString to wchar_t*]]></category>
		<category><![CDATA[CString::GetBuffer()]]></category>
		<category><![CDATA[CString::ReleaseBuffer()]]></category>
		<category><![CDATA[error C2664]]></category>

		<guid isPermaLink="false">http://weseetips.com/?p=738</guid>
		<description><![CDATA[Without a second thought, I can say that it will be one of the first problems that beginners face &#8211; How to convert a CString to LPTSTR. I&#8217;ve seen this question several times in forums. Well, i think the CString to LPTSTR conversion is just like this picture. Well, you can use CString::GetBuffer() to access [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-medium wp-image-11" title="Icon Description" src="http://weseetips.files.wordpress.com/2008/03/icon_description.jpg?w=166" alt="" width="166" height="32" /><br />
Without a second thought, I can say that it will be one of the first problems that beginners face &#8211; <span style="color:#0000ff;">How to convert a CString to LPTSTR.</span> I&#8217;ve seen this question several times in forums. Well, i think the CString to LPTSTR conversion is just like this picture. <img src='http://weseetips.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p><img class="alignnone size-full wp-image-740" title="cstringtolptstr" src="http://siteground205.com/~weseetip/wp-content/uploads/2008/12/cstringtolptstr.png" alt="cstringtolptstr" width="494" height="227" /></p>
<p><img class="alignnone size-medium wp-image-12" title="Icon How Can I Do It?" src="http://weseetips.files.wordpress.com/2008/03/icon_howcanidoit.jpg?w=220" alt="" width="220" height="32" /><br />
Well, you can use <span style="color:#0000ff;">CString::GetBuffer()</span> to access the internal buffer of CString. But one thing to take care is that &#8211; <strong>you should release the buffer</strong> by calling <span style="color:#0000ff;">CString::ReleaseBuffer()</span> after use. Check the code snippet below,</p>
<pre>// Our CString object.
CString String = "HelloWorld";

// Get the internal buffer pointer of CString.
LPTSTR pString = String.GetBuffer( 0 );
...

// Use the pString and then release it.
String.ReleaseBuffer();</pre>
<p><img class="alignnone size-medium wp-image-18" title="Icon Note" src="http://weseetips.files.wordpress.com/2008/03/icon_note.jpg?w=94" alt="" width="94" height="32" /><br />
Now get rid of that nasty error message &#8211; <span style="color:#0000ff;">error C2664: &#8216;Hello&#8217; : cannot convert parameter 1 from &#8216;class CString&#8217; to &#8216;char *&#8217;</span>. <img src='http://weseetips.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p><img class="alignnone size-medium wp-image-51" title="beginnerseries" src="http://weseetips.files.wordpress.com/2008/03/beginnerseries.jpg?w=215" alt="" width="215" height="32" /><br />
Targeted Audience &#8211; Beginners.</p>
]]></content:encoded>
			<wfw:commentRss>http://weseetips.com/2008/12/17/how-to-convert-cstring-to-char-or-lptstr/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>How to reduce the size of Microsoft Word files?</title>
		<link>http://weseetips.com/2008/12/07/how-to-reduce-the-size-of-microsoft-word-files/</link>
		<comments>http://weseetips.com/2008/12/07/how-to-reduce-the-size-of-microsoft-word-files/#comments</comments>
		<pubDate>Sun, 07 Dec 2008 12:43:49 +0000</pubDate>
		<dc:creator>Jijo Raj</dc:creator>
				<category><![CDATA[Misc]]></category>
		<category><![CDATA[how to reduce microsoft word file size]]></category>
		<category><![CDATA[microsoft word file size]]></category>
		<category><![CDATA[microsoft word tips]]></category>
		<category><![CDATA[reduce file size]]></category>
		<category><![CDATA[reduce word file size]]></category>

		<guid isPermaLink="false">http://weseetips.com/?p=681</guid>
		<description><![CDATA[Documentation is inevitable for developers. Mostly we use Microsoft Word for documentation and you&#8217;ve already noticed the huge file size of word files. It often gets several megabytes in size. Its mostly when you copy paste images to document. While pasting, the images are embedded as bitmaps and hence the huge size. Well if you [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-medium wp-image-11" title="Icon Description" src="http://weseetips.wordpress.com/files/2008/03/icon_description.jpg?w=166" alt="" width="166" height="32" /><br />
<span style="color:#0000ff;"> Documentation is inevitable for developers.</span> Mostly we use Microsoft Word for documentation and you&#8217;ve already noticed the <span style="color:#0000ff;">huge file size of word files. </span>It often gets several megabytes in size. Its mostly when you copy paste images to document. While pasting, the images are embedded as bitmaps and hence the huge size. <span style="color:#0000ff;">Well if you zip it, then it will drastically reduce the size.</span> Well,<span style="color:#0000ff;"> is there any other method </span>to reduce the size without zipping?</p>
<p><img class="alignnone size-full wp-image-686" title="reducewordfilesize" src="http://weseetips.wordpress.com/files/2008/12/reducewordfilesize.jpg" alt="reducewordfilesize" width="510" height="345" /></p>
<p><img class="alignnone size-medium wp-image-12" title="Icon How Can I Do It?" src="http://weseetips.wordpress.com/files/2008/03/icon_howcanidoit.jpg?w=220" alt="" width="220" height="32" /><br />
<span style="color:#0000ff;">Microsoft Word have built in feature for compressing images.</span> Follow the steps below.</p>
<p>1. <span style="color:#0000ff;">Right click any of the pictures</span> in your word document and select <span style="color:#0000ff;"><strong>&#8220;Format Picture&#8221;</strong></span><br />
<img class="alignnone size-full wp-image-687" title="reducewordfilesize1" src="http://weseetips.wordpress.com/files/2008/12/reducewordfilesize1.jpg" alt="reducewordfilesize1" width="510" height="387" /></p>
<p>2. Now take  <span style="color:#0000ff;"><strong>&#8220;Picture tab&#8221;</strong></span> and click <strong><span style="color:#0000ff;">&#8220;</span><span style="color:#0000ff;">Compress&#8221;</span></strong> button.<br />
<img class="alignnone size-full wp-image-688" title="reducewordfilesize2" src="http://weseetips.wordpress.com/files/2008/12/reducewordfilesize2.jpg" alt="reducewordfilesize2" width="427" height="390" /></p>
<p>3. Now in the compression options, you could select accordingly. <span style="color:#0000ff;">For optimal file size,</span> <span style="color:#000000;">select resolution </span>as <span style="color:#0000ff;"><strong>&#8220;Web/screen&#8221;</strong></span> and apply for <span style="color:#0000ff;"><strong>&#8220;All Pictures in document&#8221;</strong></span>.<br />
<img class="alignnone size-full wp-image-689" title="reducewordfilesize3" src="http://weseetips.wordpress.com/files/2008/12/reducewordfilesize3.jpg" alt="reducewordfilesize3" width="361" height="296" /></p>
<p>Now check the file size! Amazing. isn&#8217;t it? <img src='http://weseetips.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p><img class="alignnone size-medium wp-image-18" title="Icon Note" src="http://weseetips.wordpress.com/files/2008/03/icon_note.jpg?w=94" alt="" width="94" height="32" /><br />
Well, no more zipping head aches, no more email bouncing due to attachment size. Complete Peace for Mind <img src='http://weseetips.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p><img class="alignnone size-medium wp-image-51" title="beginnerseries" src="http://weseetips.wordpress.com/files/2008/03/beginnerseries.jpg?w=215" alt="" width="215" height="32" /><br />
Targeted Audience &#8211; Beginners.</p>
]]></content:encoded>
			<wfw:commentRss>http://weseetips.com/2008/12/07/how-to-reduce-the-size-of-microsoft-word-files/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

