我在 Arcobjects 的示例代码中遇到了一个奇怪的错误,但该错误似乎不是 arcobjects 的一部分
这是发生错误的代码部分:
// Get the typeinfo for the ActiveX common dialog control
typ = Type.GetTypeFromProgID("MSComDlg.CommonDialog");
// Create an instance of the control. We pass it to the property frame function
// so the property pages have an object from which to get current settings and apply
// new settings.
obj = Activator.CreateInstance(typ); ///////the error occurs here
// This handy function calls IPersistStreamInit->New on COM objects to initialize them
ActiveXMessageFormatter.InitStreamedObject(obj);
当执行到达这一行时, obj = Activator.CreateInstance(typ);
我收到此错误COM EXCEPTION WAS UNHANDELED BY THE USER
请提供任何帮助