<?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>Sharp World &#187; TaskDialogIcon</title>
	<atom:link href="http://sharpmix.net/blog/tag/taskdialogicon/feed/" rel="self" type="application/rss+xml" />
	<link>http://sharpmix.net/blog</link>
	<description>It&#039;s about C# and video games !</description>
	<lastBuildDate>Fri, 18 Sep 2009 15:43:53 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>TaskDialog hidden icons.</title>
		<link>http://sharpmix.net/blog/2009/06/28/taskdialog-hidden-icons/</link>
		<comments>http://sharpmix.net/blog/2009/06/28/taskdialog-hidden-icons/#comments</comments>
		<pubDate>Sun, 28 Jun 2009 21:45:19 +0000</pubDate>
		<dc:creator>Abdallah Fdal</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[COMCTL32.DLL]]></category>
		<category><![CDATA[TaskDialog]]></category>
		<category><![CDATA[TaskDialogIcon]]></category>
		<category><![CDATA[TaskDialogIndirect]]></category>
		<category><![CDATA[Vista]]></category>
		<category><![CDATA[Win32]]></category>
		<category><![CDATA[Windows 7]]></category>
		<category><![CDATA[Windows API Code Pack]]></category>

		<guid isPermaLink="false">http://managedworld.wordpress.com/?p=108</guid>
		<description><![CDATA[Before starting, you need to know there&#8217;s a small issue on using the API in your project, you can get an Unable to find an entry point name &#8216;TaskDialogIndirect&#8217; in DLL &#8216;comctl32.dll&#8217; error.
To get the whole story, see my post Unable to find an entry point name &#8216;TaskDialogIndirect&#8217; in DLL &#8216;comctl32.dll&#8217;

Thanks to Bart Desmet, you [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Before starting, you need to know there&#8217;s a small issue on using the API in your project, you can get an </strong><em>Unable to find an entry point name &#8216;TaskDialogIndirect&#8217; in DLL &#8216;comctl32.dll&#8217;</em><strong> error.</strong></p>
<p><strong>To get the whole story, see my post </strong><em><a href="http://sharpmix.net/blog/2009/06/23/unable-to-find-an-entry-point-name-taskdialogindirect-in-dll-comctl32-dll/"><strong>Unable to find an entry point name &#8216;TaskDialogIndirect&#8217; in DLL &#8216;comctl32.dll&#8217;</strong></a></em></p>
<hr />
<p style="text-align:left;">Thanks to <a href="http://bartdesmet.net/blogs/bart/archive/2006/09/26/4470.aspx">Bart Desmet</a>, you can access all flavors of icons; these are not present in the <em>TaskDialog</em> documentation, I think they have been removed.</p>
<p style="text-align:left;"><em>Another CancelShutdown ? </em></p>
<p style="text-align: left;"><img title="TaskDialog" src="http://managedworld.files.wordpress.com/2009/06/taskdialog.png" alt="TaskDialog" width="376" height="119" /></p>
<p style="text-align: left;"><img title="TaskDialog (2)" src="http://managedworld.files.wordpress.com/2009/06/taskdialog-2.png" alt="TaskDialog (2)" width="376" height="119" /></p>
<p style="text-align: left;"><img title="TaskDialog (3)" src="http://managedworld.files.wordpress.com/2009/06/taskdialog-3.png" alt="TaskDialog (3)" width="376" height="119" /></p>
<p style="text-align: left;"><img title="TaskDialog (4)" src="http://managedworld.files.wordpress.com/2009/06/taskdialog-4.png" alt="TaskDialog (4)" width="376" height="119" /></p>
<p style="text-align: left;"><img title="TaskDialog (5)" src="http://managedworld.files.wordpress.com/2009/06/taskdialog-5.png" alt="TaskDialog (5)" width="376" height="119" /></p>
<p style="text-align:left;">Replace the <em>TaskDialogStandardIcon</em> definition with the one below.</p>
<pre class="brush: csharp;">
    /// &lt;summary&gt;
    /// Specifies the icon displayed in a task dialog.
    /// &lt;/summary&gt;
    public enum TaskDialogStandardIcon
    {
        /// &lt;summary&gt;
        /// Displays no icons (default).
        /// &lt;/summary&gt;
        None = 0,

        /// &lt;summary&gt;
        /// Displays the warning icon.
        /// &lt;/summary&gt;
        Warning = 65535,

        /// &lt;summary&gt;
        /// Displays the error icon.
        /// &lt;/summary&gt;
        Error = 65534,

        /// &lt;summary&gt;
        /// Displays the Information icon.
        /// &lt;/summary&gt;
        Information = 65533,

        /// &lt;summary&gt;
        /// Displays the User Account Control shield.
        /// &lt;/summary&gt;
        Shield = 65532,

        SecurityShieldBlue = 65531,

        SecurityWarning = 65530,

        SecurityError = 65529,

        SecuritySuccess = 65528,

        SecurityShieldGray = 65527,
    }
</pre>
<p><em><a href="http://sharpmix.net/blog/2009/06/23/unable-to-find-an-entry-point-name-taskdialogindirect-in-dll-comctl32-dll/"><strong> </strong></a></em></p>
<p>If you are lazy like I am, get the code : <a href="http://sharpmix.net/blog/wp-content/uploads/2009/06/TaskDialogHiddenIcons.zip">TaskDialogHiddenIcons</a><a href="../wp-content/uploads/2009/06/TaskDialogHiddenIcons.zip"></a></p>
<p>Too easy,</p>
<ul>
<li> You still have to get the <a href="http://code.msdn.microsoft.com/WindowsAPICodePack">Windows API Code Pack</a>,</li>
<li>Point the <em>Core </em>project location to where you extracted it,</li>
<li>Update the <em>TaskDialogStandardIcon</em> definition with the one provided above,</li>
<li>Enjoy !</li>
</ul>
<p>If you&#8217;re even lazier than I am <em>(I didn&#8217;t know this was possible, I have to meet you right now :-)</em>, go to <em>bin\Debug</em> and run the application&#8217;s .EXE :-)</p>
]]></content:encoded>
			<wfw:commentRss>http://sharpmix.net/blog/2009/06/28/taskdialog-hidden-icons/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Unable to find an entry point name &#039;TaskDialogIndirect&#039; in DLL &#039;comctl32.dll&#039;</title>
		<link>http://sharpmix.net/blog/2009/06/23/unable-to-find-an-entry-point-name-taskdialogindirect-in-dll-comctl32-dll/</link>
		<comments>http://sharpmix.net/blog/2009/06/23/unable-to-find-an-entry-point-name-taskdialogindirect-in-dll-comctl32-dll/#comments</comments>
		<pubDate>Tue, 23 Jun 2009 18:53:54 +0000</pubDate>
		<dc:creator>Abdallah Fdal</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[COMCTL32.DLL]]></category>
		<category><![CDATA[TaskDialog]]></category>
		<category><![CDATA[TaskDialogIcon]]></category>
		<category><![CDATA[TaskDialogIndirect]]></category>
		<category><![CDATA[Vista]]></category>
		<category><![CDATA[Win32]]></category>
		<category><![CDATA[Windows 7]]></category>
		<category><![CDATA[Windows API Code Pack]]></category>

		<guid isPermaLink="false">http://managedworld.wordpress.com/?p=71</guid>
		<description><![CDATA[For those of you who tried Windows API Code Pack, particularly the TaskDialog managed wrapper, you&#8217;ve probably encountered the following error when trying to run your program.


 
Too bad,
I was happy when I heard they finally released a managed API for those (not yet managed) APIs &#8230;
I have been struggling a lot last year to [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align:left;">For those of you who tried <a href="http://code.msdn.microsoft.com/WindowsAPICodePack">Windows API Code Pack</a>, particularly the TaskDialog managed wrapper, you&#8217;ve probably encountered the following error when trying to run your program.</p>
<p style="text-align:left;"><em><br />
</em></p>
<p style="text-align:left;"><em> </em></p>
<p style="text-align:left;">Too bad,</p>
<p style="text-align:left;">I was happy when I heard they finally released a managed API for those (not yet managed) APIs &#8230;</p>
<p style="text-align:left;">I have been struggling a lot last year to try get it working with C#, thanks to Chris Dunford&#8217;s <a href="http://adventuresinwpf.blogspot.com/2008/09/vistabridge-considered-harmful.html">VistaBridge Considered Harmful; An Alternative</a> which would have otherwise, never happened.</p>
<p style="text-align:left;">(Credits goes to Kenny Kerr too, for <a href="http://weblogs.asp.net/kennykerr/archive/2006/07/18/Windows-Vista-for-Developers-_1320_-Part-2-_1320_-Task-Dialogs-in-Depth.aspx">his article</a> and Bart Desmet&#8217;s <a href="http://bartdesmet.net/blogs/bart/archive/2006/09/26/4470.aspx">Using Windows Vista&#8217;s TaskDialog API in managed code</a>)</p>
<p style="text-align:left;"><strong>The main problem <span style="text-decoration: line-through;">is</span> was the <a href="http://msdn.microsoft.com/en-us/library/aa374153(VS.85).aspx">activation context</a>,</strong></p>
<p style="text-align:left;">Solution is here :</p>
<p style="text-align:left;"><a href="http://blogs.codes-sources.com/tom/archive/2009/05/20/seven-vista-la-classe-taskdialog-et-l-erreur-unable-to-find-an-entry-point-named-taskdialogindirect-in-dll-comctl32-dll.aspx">[Seven / Vista] La classe TaskDialog et l’erreur “Unable to find an entry point named &#8216;TaskDialogIndirect&#8217; in DLL &#8216;comctl32.dll&#8217;”</a></p>
<p style="text-align:left;">Here is the translation in english :</p>
<ol>
<li>Open your project properties in the <em>Solution Explorer</em>,</li>
<li>On the Security tab, check <em>Enable ClickOnce Security Settings</em>,</li>
<li>Now you can see appearing the <em>app.manifest</em> file in the <em>Properties </em>folder of your solution, open it,</li>
<li>Beneath the <em>&lt;/trustInfo&gt;</em> tag, insert the following code :
<pre class="brush: csharp;">
  &lt;dependency&gt;
    &lt;dependentAssembly&gt;
      &lt;assemblyIdentity type=&quot;win32&quot; name=&quot;Microsoft.Windows.Common-Controls&quot; version=&quot;6.0.0.0&quot; processorArchitecture=&quot;*&quot; publicKeyToken=&quot;6595b64144ccf1df&quot; language=&quot;*&quot; /&gt;
    &lt;/dependentAssembly&gt;
  &lt;/dependency&gt;
</pre>
</li>
<li>If you try to build there&#8217;ll be an error, to fix it, uncheck the <em>Enable ClickOnce Security Settings</em>.</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://sharpmix.net/blog/2009/06/23/unable-to-find-an-entry-point-name-taskdialogindirect-in-dll-comctl32-dll/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
