我正在尝试使用Vista TaskDialog Wrapper and Emulator,但得到了以下异常:
“在DLL‘ComCtl32’中找不到名为'TaskDialogIndirect‘的入口点。”
...in一个简单的控制台应用程序:
class Program
{
[STAThread]
static void Main(string[] args)
{
System.Threading.Thread.CurrentThread.CurrentUICulture = System.Threading.Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo("en-US");
PSTaskDialog.cTaskDialog.MessageBox(
"MessageBox Title",
"The main instruction text for the message box is shown here.",
"The content text for the message box is shown here and the text willautomatically wrap as needed.",
PSTaskDialog.eTaskDialogButtons.YesNo,
PSTaskDialog.eSysIcons.Information
);
}
}我做错了什么?
更新:
实际上,我正在开发一个使用excel-dna的Excel插件。如何控制Excel加载的dll?
http://exceldna.codeplex.com/discussions/286990#post728888
发布于 2012-01-30 21:12:45
除了所有其他人所说的:如果您将PSTaskDialog上的ForceEmulationMode设置为true,则此错误将消失。
https://stackoverflow.com/questions/8952203
复制相似问题