使用64位的Microsoft.VisualStudio.OLE.Interop显示属性页 [英] Displaying a Property Page using Microsoft.VisualStudio.OLE.Interop in 64bit

查看:101
本文介绍了使用64位的Microsoft.VisualStudio.OLE.Interop显示属性页的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用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? 

解决方案

高级别,您可能需要查看以下内容


https://msdn.microsoft.com/en-us/library/ms973190.aspx


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? 

解决方案

High level, you might want to check out the following

https://msdn.microsoft.com/en-us/library/ms973190.aspx


这篇关于使用64位的Microsoft.VisualStudio.OLE.Interop显示属性页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆