摘要:
一般来说可以通过写注册表的方式实现,在函数入口处实现功能。例如在VC/MFC中,可以在应用程序的C**App.cpp文件中InitInstance()函数中实现该功能。#include <string>using namespace std;//关联文件的后缀名,如"txt"、"doc"等string m_csExtension;string m_csShellOpenCommand;string m_csDocumentShellOpenCommand;//注册表中文件夹类名string m_csDocumentClassName;//关联 阅读全文
摘要:
用MFC打开一个文件或程序 -- 深入浅出ShellExecute文章来源:http://www.vckbase.com/document/viewdoc/?id=416Q: 如何打开一个应用程序?ShellExecute(this->m_hWnd,"open","calc.exe","","", SW_SHOW );或ShellExecute(this->m_hWnd,"open","notepad.exe", "c:\\MyLog.log" 阅读全文