<?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; copy dialog resource</title>
	<atom:link href="http://weseetips.com/tag/copy-dialog-resource/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 import dialogs or resources from one project to another?</title>
		<link>http://weseetips.com/2008/09/09/how-to-import-dialogs-or-resources-from-one-project-to-another/</link>
		<comments>http://weseetips.com/2008/09/09/how-to-import-dialogs-or-resources-from-one-project-to-another/#comments</comments>
		<pubDate>Tue, 09 Sep 2008 17:16:26 +0000</pubDate>
		<dc:creator>Jijo Raj</dc:creator>
				<category><![CDATA[Codeproject]]></category>
		<category><![CDATA[Visual Studio]]></category>
		<category><![CDATA[copy dialog from one project to another]]></category>
		<category><![CDATA[copy dialog resource]]></category>
		<category><![CDATA[copy resource]]></category>
		<category><![CDATA[dialog resource]]></category>
		<category><![CDATA[import dialog]]></category>
		<category><![CDATA[import resource]]></category>
		<category><![CDATA[resource]]></category>

		<guid isPermaLink="false">http://weseetips.wordpress.com/?p=438</guid>
		<description><![CDATA[Designing dialogs &#8211; that could grab a good amount of time! But often we can find dialogs that can be reused from our previous projects. But the copy paste trick &#8211; the Ctrl+C &#38; Ctrl+V won&#8217;t work on dialog resources. So how to copy/paste dialogs or any other resources from one project to another? Assume [...]]]></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 />
<span style="color:#0000ff;">Designing dialogs</span> &#8211; that <span style="color:#0000ff;">could grab</span> a <span style="color:#0000ff;">good amount of time</span>! But often <span style="color:#0000ff;">we can find dialogs</span> that can be <span style="color:#0000ff;">reused</span> <span style="color:#0000ff;">from our previous projects</span>. But the <span style="color:#0000ff;">copy paste trick</span> &#8211; the Ctrl+C &amp; Ctrl+V <span style="color:#0000ff;">won&#8217;t work on dialog resources.</span> So how to copy/paste dialogs or any other resources from one project to another?</p>
<p><img class="alignnone size-full wp-image-626" title="importdialog" src="http://siteground205.com/~weseetip/wp-content/uploads/2008/11/importdialog.jpg" alt="importdialog" width="380" height="380" /></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 />
<span style="color:#0000ff;">Assume you have two projects</span> &#8211; <span style="color:#0000ff;">Project1 </span>and <span style="color:#0000ff;">project2 </span>and you want to <span style="color:#0000ff;">copy one dialog from Project1</span> to <span style="color:#0000ff;">Project2</span>. Just follow the steps -</p>
<p><span style="text-decoration:underline;"><strong>For Visual Studio 6.0</strong></span><br />
1) Load project2 workspace in visual studio.<br />
2) Now <span style="color:#0000ff;">Browse and load Project1&#8242;s rc file.</span> While opening resource file, select <span style="color:#0000ff;">&#8220;Open As&#8221;</span> as <span style="color:#0000ff;">&#8220;Resources&#8221;</span>.<br />
<img class="alignnone size-full wp-image-444" title="importdialog_1" src="http://siteground205.com/~weseetip/wp-content/uploads/2008/09/importdialog_1.jpg" alt="" width="510" height="356" /></p>
<p>3) Now <span style="color:#0000ff;">drag your required dialog </span>from project1&#8242;s resource tree <span style="color:#0000ff;">and drop it to your resource tree.</span><br />
<img class="alignnone size-full wp-image-449" title="importdialog_3" src="http://siteground205.com/~weseetip/wp-content/uploads/2008/09/importdialog_3.jpg" alt="" width="510" height="382" /></p>
<p>4) You&#8217;ve successfully copied dialog from one project to another!</p>
<p><span style="text-decoration:underline;"><strong>For Visual Studio 2005 and siblings</strong></span><br />
1) Open your IDE without any solutions loaded.<br />
2) open both RC files into the IDE.<br />
3) Now take Project2 RC file, right click on the dialog you want to export and copy it.</p>
<p><img class="alignnone size-full wp-image-628" title="importdialog1" src="http://siteground205.com/~weseetip/wp-content/uploads/2008/11/importdialog1.jpg" alt="importdialog1" width="510" height="416" /></p>
<p>4) Now take Project1 RC file, right click and paste.</p>
<p><img class="alignnone size-full wp-image-629" title="importdialog2" src="http://siteground205.com/~weseetip/wp-content/uploads/2008/11/importdialog2.jpg" alt="importdialog2" width="510" height="388" /></p>
<p>5) You see, now the dialog is imported from project1 to Project2.</p>
<p><img class="alignnone size-full wp-image-630" title="importdialog3" src="http://siteground205.com/~weseetip/wp-content/uploads/2008/11/importdialog3.jpg" alt="importdialog3" width="509" height="387" /></p>
<p>Well, special thanks to Mike and Alan for their contribution for the trick in Visual Studio 2005.</p>
<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 />
<span style="color:#0000ff;">You could also edit the rc file in some text editor</span> and <span style="color:#0000ff;">can copy paste the dialog</span> <span style="color:#0000ff;">if you&#8217;re a geek. <img src='http://weseetips.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </span></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/09/09/how-to-import-dialogs-or-resources-from-one-project-to-another/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
	</channel>
</rss>

