Unable to find an entry point name 'TaskDialogIndirect' in DLL 'comctl32.dll'

For those of you who tried Windows API Code Pack, particularly the TaskDialog managed wrapper, you’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 …

I have been struggling a lot last year to try get it working with C#, thanks to Chris Dunford’s VistaBridge Considered Harmful; An Alternative which would have otherwise, never happened.

(Credits goes to Kenny Kerr too, for his article and Bart Desmet’s Using Windows Vista’s TaskDialog API in managed code)

The main problem is was the activation context,

Solution is here :

[Seven / Vista] La classe TaskDialog et l’erreur “Unable to find an entry point named ‘TaskDialogIndirect’ in DLL ‘comctl32.dll’”

Here is the translation in english :

  1. Open your project properties in the Solution Explorer,
  2. On the Security tab, check Enable ClickOnce Security Settings,
  3. Now you can see appearing the app.manifest file in the Properties folder of your solution, open it,
  4. Beneath the </trustInfo> tag, insert the following code :
      <dependency>
        <dependentAssembly>
          <assemblyIdentity type="win32" name="Microsoft.Windows.Common-Controls" version="6.0.0.0" processorArchitecture="*" publicKeyToken="6595b64144ccf1df" language="*" />
        </dependentAssembly>
      </dependency>
    
  5. If you try to build there’ll be an error, to fix it, uncheck the Enable ClickOnce Security Settings.

2 Comments

  1. Posted March 22, 2010 at 2:58 PM | Permalink

    Thanks for a wonderful post, l ve been looking for such information, I will join jour rss feed now.

  2. Posted April 8, 2010 at 7:10 PM | Permalink

    Sorry for the long delay !

One Trackback

  1. By TaskDialog hidden icons. – Sharp World on September 17, 2009 at 4:03 PM

    [...] To get the whole story, see my post Unable to find an entry point name ‘TaskDialogIndirect’ in DLL ‘comctl32.dll&#8217… [...]

Post a Comment

Your email is never shared. Required fields are marked *

*
*