<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Disabling and Enabling the Close Button in .NET 2.0 WinForms</title>
	<atom:link href="http://kenkopczyk.com/2010/01/23/disabling-and-enabling-the-close-button-in-net-2-0-winforms/feed/" rel="self" type="application/rss+xml" />
	<link>http://kenkopczyk.com/2010/01/23/disabling-and-enabling-the-close-button-in-net-2-0-winforms/</link>
	<description>Hurdles in .NET WinForms Development</description>
	<lastBuildDate>Mon, 25 Jan 2010 20:50:27 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: Ken</title>
		<link>http://kenkopczyk.com/2010/01/23/disabling-and-enabling-the-close-button-in-net-2-0-winforms/#comment-17</link>
		<dc:creator>Ken</dc:creator>
		<pubDate>Mon, 25 Jan 2010 20:50:27 +0000</pubDate>
		<guid isPermaLink="false">http://kenkopczyk.com/?p=234#comment-17</guid>
		<description>Here&#039;s what I would do:
1.  Put the 3rd party dll into your Windows\System32 directory and register it by running this command:  
[sourcecode]
regsvr32 /i foo.dll
[/sourcecode]
2.  Add a reference to the dll via Visual Studio as you normally would.  It should create a .NET dll called Interop.foo.dll when building.  See my previous post for info for this.
3.  Invoke in the code.
4.  For deployment, use a Setup Project (vdproj).  Add the dll to &quot;System Folder&quot; and register it as vsdrfCOM.  Also add your project output (obviously).</description>
		<content:encoded><![CDATA[<p>Here&#8217;s what I would do:<br />
1.  Put the 3rd party dll into your Windows\System32 directory and register it by running this command:  </p>
<pre class="brush: plain;">
regsvr32 /i foo.dll
</pre>
<p>2.  Add a reference to the dll via Visual Studio as you normally would.  It should create a .NET dll called Interop.foo.dll when building.  See my previous post for info for this.<br />
3.  Invoke in the code.<br />
4.  For deployment, use a Setup Project (vdproj).  Add the dll to &#8220;System Folder&#8221; and register it as vsdrfCOM.  Also add your project output (obviously).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark</title>
		<link>http://kenkopczyk.com/2010/01/23/disabling-and-enabling-the-close-button-in-net-2-0-winforms/#comment-16</link>
		<dc:creator>Mark</dc:creator>
		<pubDate>Mon, 25 Jan 2010 19:36:52 +0000</pubDate>
		<guid isPermaLink="false">http://kenkopczyk.com/?p=234#comment-16</guid>
		<description>Basically we purchased a 3rd party DLL that manipulates PDFs.  I tried some software from Microsoft that is supposed to embed DLLs in the executable but this software did not work due to the fact that the DLL contained unmanaged code.

I also tried a technique that involved treating the DLL as a resource and dynamically loading the assembly with reflection.  I forget the specific wall I ran into with this approach but I suspect it was related to security issues.</description>
		<content:encoded><![CDATA[<p>Basically we purchased a 3rd party DLL that manipulates PDFs.  I tried some software from Microsoft that is supposed to embed DLLs in the executable but this software did not work due to the fact that the DLL contained unmanaged code.</p>
<p>I also tried a technique that involved treating the DLL as a resource and dynamically loading the assembly with reflection.  I forget the specific wall I ran into with this approach but I suspect it was related to security issues.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ken</title>
		<link>http://kenkopczyk.com/2010/01/23/disabling-and-enabling-the-close-button-in-net-2-0-winforms/#comment-15</link>
		<dc:creator>Ken</dc:creator>
		<pubDate>Sun, 24 Jan 2010 04:42:16 +0000</pubDate>
		<guid isPermaLink="false">http://kenkopczyk.com/?p=234#comment-15</guid>
		<description>What I&#039;m curious about is what actual problems you were having.  Was it the distribution that was the problem or the actual invocation of the 3rd party library during development?  What was did this 3rd party software do?

I have an extremely similar scenario that I work with and have solved it on both ends.  Let me know!</description>
		<content:encoded><![CDATA[<p>What I&#8217;m curious about is what actual problems you were having.  Was it the distribution that was the problem or the actual invocation of the 3rd party library during development?  What was did this 3rd party software do?</p>
<p>I have an extremely similar scenario that I work with and have solved it on both ends.  Let me know!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark</title>
		<link>http://kenkopczyk.com/2010/01/23/disabling-and-enabling-the-close-button-in-net-2-0-winforms/#comment-14</link>
		<dc:creator>Mark</dc:creator>
		<pubDate>Sun, 24 Jan 2010 04:10:15 +0000</pubDate>
		<guid isPermaLink="false">http://kenkopczyk.com/?p=234#comment-14</guid>
		<description>Nice tutorial.

Do you know any or all of the implications of using unmanaged code?  Recently I was trying to bundle all the files required dlls for a small app I wrote so that it could easily be distributed.  Unfortunately it was dependent upon a third party library that had unmanaged code and every technique I read online and tried was unable to embed it.

I am curious what the ramifications are of using unmanaged code.</description>
		<content:encoded><![CDATA[<p>Nice tutorial.</p>
<p>Do you know any or all of the implications of using unmanaged code?  Recently I was trying to bundle all the files required dlls for a small app I wrote so that it could easily be distributed.  Unfortunately it was dependent upon a third party library that had unmanaged code and every technique I read online and tried was unable to embed it.</p>
<p>I am curious what the ramifications are of using unmanaged code.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
