Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using Ookii.Dialogs.TaskDialog in PowerShell 7 #97

Open
futuremotiondev opened this issue Apr 5, 2022 · 1 comment
Open

Using Ookii.Dialogs.TaskDialog in PowerShell 7 #97

futuremotiondev opened this issue Apr 5, 2022 · 1 comment

Comments

@futuremotiondev
Copy link

I've been able to get a lot of the controls working, but getting an error when calling $TaskDialog.ShowDialog():

Exception calling "ShowDialog" with "0" argument(s): "Unable to find an entry point named 'TaskDialogIndirect' in DLL 'comctl32.dll'."

This is mentioned in your README:

Ookii Dialogs leverages the components and visual styles of the Windows Common Controls library (comctl32.dll), and WPF applications targeting .NET Core 3.1 and/or .NET 5 must add an application manifest (app.manifest) to their projects with a reference to Microsoft.Windows.Common-Controls.
Without the application manifest, you'll get an error with a message similar to the below:
System.EntryPointNotFoundException: 'Unable to find an entry point named '...' in DLL 'comctl32.dll'.'

Is there any way to get this working in powershell by referencing Microsoft.Windows.Common-Controls?

Any help would be appreciated!

@LewisAlex
Copy link

@visusys I have no answer 'cause I'm still stuck at using Ookii.Dialogs.WinForms in powershell.....How didi u do ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants