Windows 7:属性处理程序可在资源管理器中工作,但不能使用FileOpenDialog吗? [英] Windows 7: Property Handler works in Explorer but Not FileOpenDialog?

查看:102
本文介绍了Windows 7:属性处理程序可在资源管理器中工作,但不能使用FileOpenDialog吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

正在为Windows 7中的自定义文件类型编写自定义属性处理程序。我已经安装了Windows 7 SDK,并构建了示例属性处理程序。注册处理程序后,它可以在Windows资源管理器中很好地工作,但是在公共文件打开对话框中,不会显示自定义值。有人知道我是否需要做一些特殊的事情才能使属性出现在普通对话框中?

Working on writing a custom property Handler for our custom file type in windows 7. I have installed the Windows 7 SDK and built the sample Property Handler. After registering the handler, it works great in Windows Explorer, but in the common file open dialog the custom values do not appear. Does anyone know if there is something special I need to do to get the properties to appear in common dialogs?

Explorer:

Explorer:

文件打开对话框:

File Open Dialog:

推荐答案

确定了。这是交易。我的应用程序是32位,并且我在x64系统上。因为PropertyHandler是用x64编写的,以支持Shell退出进程。但是对于文件打开对话框,它需要在进程内运行,因此x64 dll无法运行。我通过创建一个快速的x64应用程序确认了这一点,并且fileopen对话框的工作原理与操作系统相同。希望这以后能帮助其他人,不想回答我自己的问题,但不要让人们在我找到解决方案时在这个问题上浪费NRG。

OK, figured it out. Here is the deal. My app is 32 bit and I am on a x64 system. Because the PropertyHandler is written in x64 to support the shell out of process. But for the file open dialog it needs to run inprocess, so the x64 dll can not run. I confirmed this by creating a quick x64 app and the fileopen dialog works the same as the OS. Hope this helps someone else in my shoes later on, hate answering my own question, but don't want people wasting NRG on this one as I found the solution.

这篇关于Windows 7:属性处理程序可在资源管理器中工作,但不能使用FileOpenDialog吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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