Posted on 2006-06-03 09:11
semovy 阅读(308)
评论(0) 编辑 收藏 所属分类:
C++ Builder相关
1.调用Windows的计算器
WinExec("CALC.EXE",0);
2.调用Windows记事本
ShellExecute(Application->Handle,"open","notepad.exe",NULL,NULL,SW_SHOWNORMAL);
3.BarTender条形码设计软件
4.调用*.chm帮助文件:
String sHelpFilePath = GetCurrentDir() + "\\help\\help.CHM"; //文件路径
if(FileExists(sHelpFilePath))
{
ShellExecute(
Handle,
"open",
sHelpFilePath.c_str(),
NULL,
NULL,
SW_SHOWNORMAL
);
}