处理双击桌面图标 [英] handling double clicking a desktop icon

查看:89
本文介绍了处理双击桌面图标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在构建一个我希望拥有与其他应用程序一样的应用程序,当用户双击桌面上与文件关联的图标时,我的应用程序将运行并处理该文件.我想我可以使用打开方式"功能将应用程序与文件相关联,但是考虑到双击图标时我的应用程序尚未运行,我如何获得被双击文件的路径?该应用程序在Visual c ++ 6.0中.在此先感谢您.

I am building an application that I would like to have work like many others where when the user double clicks an icon on the desktop that is associated with a file, my application runs and processes the file. I guess I can associate my application with the file using the "open with" capability, but how do I get the path to the file that was double clicked, considering that my application was not running yet when the icon was double clicked? The application is in Visual c++ 6.0. Thanks in advance.

推荐答案

这是通过注册表完成的.请访问此网站: http://social.msdn.microsoft.com/Forums/zh-CN/vbgeneral/thread/d89af73d-3ad7-485a-b6c4-94dadf13659e/ [
It''s done via the regsitry. Please refer to this site please: http://social.msdn.microsoft.com/Forums/en-US/vbgeneral/thread/d89af73d-3ad7-485a-b6c4-94dadf13659e/[^].
The application is language independant.

Cheers!

-MRB


这篇关于处理双击桌面图标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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