Windows Develop Bookmark and Share   
 index > Windows Forms General > Problem in TaskDialog Class
 

Problem in TaskDialog Class

Hello everyone,

I have tried use TaskDialog class in VistaBridge Sample but i have a problem, when i try to all the TaskDialog.Show(), an exception will be shown that says: unable to find any entry point named "TaskDialogIndirect" in DLL "ComCtl32.dll".
i searcher about this and found out that this comctl32.dll is version 5 not 6, it's the reason that makes this exception but my operating system is windows 7 and now i have checked my comctl32.dll, yes it's 5th version. bow i have a question in this operating system any projects i downloaded is working well but when i use them libraries and dll(s) my project now working, why? a pirson in internet said you should usemanifest, but how can i do it, please help me how can i view and use TaskDialog.Show() function in Windows7 operating systems?

Pk.khafan
  • Moved byTaylorMichaelLMVPSunday, June 14, 2009 12:43 PMNot IDE related (From:Visual C# IDE)
  •  
Pk.khafan  Saturday, June 13, 2009 2:25 PM
In Windows Forms, you'd have to call Application.EnableVisualStyles() to get version 6 of comctl32.dll instead of version 5. VistaBridge is targeted to WPF, you'd have to ask in the WPF forum to find out how they do it.
Hans Passant.
nobugz  Sunday, June 14, 2009 5:04 PM
hi everyone i have a question too:

when i use this function in Program.cs, it works very well but when i use it in another file in same project, the exception will be apeared.

Pk.khafan
Pk.khafan  Saturday, June 13, 2009 2:30 PM
In Windows Forms, you'd have to call Application.EnableVisualStyles() to get version 6 of comctl32.dll instead of version 5. VistaBridge is targeted to WPF, you'd have to ask in the WPF forum to find out how they do it.
Hans Passant.
nobugz  Sunday, June 14, 2009 5:04 PM

You can use google to search for other answers

Custom Search

More Threads

• show tooltip on a toolstripbutton
• Treeview, AfterSelect and seelctednode query
• Restrict user from entering custom text into combo box
• KeyUp problem on drawing
• Cannot catch WM_CONTEXTMENU or WM_RBUTTONDOWN in ComboBox WndProc
• How to have one instance of the form? VB.net or VS 2005(VB)
• problem
• filmstrip border around image
• Un-minimising midchild form - normal or maximised?
• Import Excel file into dataGridView