单文档系统中如何在系统开始运行时就自动打开一个文件。在线等。 问题如标题。就这么多分了,请高手不吝赐教。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 在初始化中BOOL CDocumentApp::InitInstance()对cmdInfo.m_strDriverName赋初值 在// Parse command line for standard shell commands, DDE, file openCCommandLineInfo cmdInfo;ParseCommandLine(cmdInfo);后面添加cmdInfo.m_strFileName="F:\\VCCode\\document\\Docume1.txt"; 不行啊。.m_strFileName参数没有错 cmdInfo.m_nShellCommand=CCommandLineInfo::FileOpen; BOOL CMyWinApp::InitInstance(){......// Parse command line for standard shell commands, DDE, file openCCommandLineInfo cmdInfo;ParseCommandLine(cmdInfo);cmdInfo.m_strFileName="C:\\Documents and Settings\\abc.txt";cmdInfo.m_nShellCommand=CCommandLineInfo::FileOpen;......//}//可参看Msdn 中CCommandLineInfo 类的相关 这样销毁窗口会不会引起内存的泄露 如何预防客户端泛滥连接服务器? Dlg对话框闪屏问题 小弟相求,特来告急:求一个VC写的时间控件!带上毫秒的! 我做了一个COM组件,现在想在IE启动时自动加载我的COM组件 分布式部署出现问题~~~ 请教高手!!! 网络游戏-外挂技术之疑问!!! 怎样实现这种界面? 很奇怪的问题,函数返回怪值? 获取数据库名称 各位,我在读一个实时监控的程序,但是不知道如何下手? 如何获得一个随机数?(在线等)
对cmdInfo.m_strDriverName赋初值
CCommandLineInfo cmdInfo;
ParseCommandLine(cmdInfo);后面添加
cmdInfo.m_strFileName="F:\\VCCode\\document\\Docume1.txt";
{
......
// Parse command line for standard shell commands, DDE, file open
CCommandLineInfo cmdInfo;
ParseCommandLine(cmdInfo);
cmdInfo.m_strFileName="C:\\Documents and Settings\\abc.txt";
cmdInfo.m_nShellCommand=CCommandLineInfo::FileOpen;......
//
}
//可参看Msdn 中CCommandLineInfo 类的相关