问题描述
我正在尝试使用64位的C#.NET UserControl创建自定义属性页。 我正在使用来自Microsoft.VisualStudio.OLE.Interop的ISpecifyPropertyPages和IPropertyPage。
我在32位运行的同一个UserControl将显示属性页面,但是当我在64中运行它时-bit它不会,虽然在两次出现时都会调用ISpecifyPropertyPages.GetPages。
我已经成功地使自定义属性页在C ++ ATL ActiveX控件中工作,包括32和64 -bit和32位C#.NET UserControls,但不是.NET 64位。
根据我看到的另一篇文章,Microsoft.VisualStudio.OLE.Interop只能用于32位体系结构,因为Visual Studio是32位。
我的问题是: 如果Interop程序集不能在64位工作,是否有另一种方法可以在.NET中显示IPropertyPage?
I am trying to create a custom property page using a C# .NET UserControl in 64-bit. I am using ISpecifyPropertyPages and IPropertyPage from Microsoft.VisualStudio.OLE.Interop.
The same UserControl that I run in 32-bit will display the property page, but when I run it in 64-bit it will not, although in both occurrences ISpecifyPropertyPages.GetPages is invoked.
I have been successful in getting custom property pages to work in C++ ATL ActiveX controls, both 32 and 64-bit, and 32-bit C# .NET UserControls, but not .NET 64-bit.
According to another post I saw, Microsoft.VisualStudio.OLE.Interop will only work with 32-bit architecture because Visual Studio is 32-bit.
My question is: If the Interop assembly will not work in 64-bit, is there another way to get an IPropertyPage to display in .NET?
这篇关于使用64位的Microsoft.VisualStudio.OLE.Interop显示属性页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!