如何在基于对话框的APP中加入对文档如.ndf的打开方式(程序)的注册?? 基于对话框的APP没有对文档的支持,我现在要用在exeplore中双击ndf文件,然后shell调用我的程序,问题是基于对话框的APP不支持.document写进注册表,如何不用 文档类也可以在 注册表中注册??? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 自己写注册表,建立ndf文件类型,将它指向你自己的处理程序就可以了。主要要写入以下内容(将执行文件的路径换成你自己的):[HKEY_CLASSES_ROOT\.ndf]@="ndf.Document"[HKEY_CLASSES_ROOT\ndf.Document]@="ndf 文件"[HKEY_CLASSES_ROOT\wab_auto_file\shell\open\command]@="\"C:\\Program Files\\ndf\\ndfapp.exe\" %1" 这是Shell编程了,注册自己的文档类型! BOOL CNBbrApp::InitInstance(){ // Parse command line for standard shell commands, DDE, file open CCommandLineInfo cmdInfo; ParseCommandLine(cmdInfo); RegeditPcoFileType(); int nCommand = cmdInfo.m_nShellCommand; switch( nCommand) { case CCommandLineInfo::FileNew: AfxMessageBox(IDS_NOTRUNAP, MB_OK|MB_ICONINFORMATION ); break; case CCommandLineInfo::FileOpen: { CString strFileName = cmdInfo.m_strFileName; if( strFileName.IsEmpty() == FALSE ) RestoreSpecFile( strFileName ); } break; return TRUE;}RegeditPcoFileType()完成注册表的填写 微软雅黑字体为什么那么小? xp能识别的内存范围,和如何获得物理内存的大小 200分 寻找一种数据压缩算法或则ocx控件 VC++8.0 调用office2007 excel 急1111帮忙。。。。。。 请问在MFC的线程中如何使用控件的成员变量和函数? 预览 那里有com本质论(中文版的,潘或者侯捷的都可以)下载么? 明日超酷晶体管进度条(VC源代码发布) VC的打印功能如何实现? UINT和WORD的区别??? 菜鸟问题:用textout可以在view中写字,可是如何将view中的字全部清除呢?
主要要写入以下内容(将执行文件的路径换成你自己的):[HKEY_CLASSES_ROOT\.ndf]
@="ndf.Document"[HKEY_CLASSES_ROOT\ndf.Document]
@="ndf 文件"
[HKEY_CLASSES_ROOT\wab_auto_file\shell\open\command]
@="\"C:\\Program Files\\ndf\\ndfapp.exe\" %1"
{
// Parse command line for standard shell commands, DDE, file open
CCommandLineInfo cmdInfo;
ParseCommandLine(cmdInfo);
RegeditPcoFileType(); int nCommand = cmdInfo.m_nShellCommand;
switch( nCommand)
{
case CCommandLineInfo::FileNew:
AfxMessageBox(IDS_NOTRUNAP, MB_OK|MB_ICONINFORMATION );
break;
case CCommandLineInfo::FileOpen:
{
CString strFileName = cmdInfo.m_strFileName;
if( strFileName.IsEmpty() == FALSE )
RestoreSpecFile( strFileName );
}
break; return TRUE;
}RegeditPcoFileType()完成注册表的填写