dll实现自动编译连接实施办法如下,该怎么处理
dll实现自动编译连接实施办法如下
#include <windows.h>
void main()
{
ShellExecute(NULL, "OPEN ", "notepad.exe ", "test.txt ",NULL,SW_SHOW);//这一行有下面的问题请见最下面附
ShellExecute(NULL, "OPEN ", "ml.exe ", "test ",NULL,SW_SHOW);//编译连接
//是否有exe文件
//没有,显示出错
//如果有,运行
ShellExecute(NULL, "OPEN ", "test.exe ", " <data > result ",NULL,SW_SHOW);//编译连接
//result 与标准的result比较
//一样,对
//不一样,错
}
我现在希望用一个参数捕捉编写程序者编写的程序代码名称,如何实现?现在是默认先用 "notepad.exe "
先谢各位.
------解决方案--------------------
不如写make文件
------解决方案--------------------
用ShellExecuteEx()
------解决方案--------------------
SHELLEXECUTEINFO
------解决方案--------------------
SHELLEXECUTEINFO ShExecInfo = {0};
ShExecInfo.cbSize = sizeof(SHELLEXECUTEINFO);
ShExecInfo.fMask = SEE_MASK_NOCLOSEPROCESS;
ShExecInfo.hwnd = NULL;
ShExecInfo.lpVerb = NULL;
ShExecInfo.lpFile = "TrustShip.exe ";
ShExecInfo.lpParameters = strParameter.c_str();
ShExecInfo.lpDirectory = NULL;
ShExecInfo.nShow = SW_HIDE;
ShExecInfo.hInstApp = NULL;
ShellExecuteEx(&ShExecInfo);
#include <windows.h>
void main()
{
ShellExecute(NULL, "OPEN ", "notepad.exe ", "test.txt ",NULL,SW_SHOW);//这一行有下面的问题请见最下面附
ShellExecute(NULL, "OPEN ", "ml.exe ", "test ",NULL,SW_SHOW);//编译连接
//是否有exe文件
//没有,显示出错
//如果有,运行
ShellExecute(NULL, "OPEN ", "test.exe ", " <data > result ",NULL,SW_SHOW);//编译连接
//result 与标准的result比较
//一样,对
//不一样,错
}
我现在希望用一个参数捕捉编写程序者编写的程序代码名称,如何实现?现在是默认先用 "notepad.exe "
先谢各位.
------解决方案--------------------
不如写make文件
------解决方案--------------------
用ShellExecuteEx()
------解决方案--------------------
SHELLEXECUTEINFO
------解决方案--------------------
SHELLEXECUTEINFO ShExecInfo = {0};
ShExecInfo.cbSize = sizeof(SHELLEXECUTEINFO);
ShExecInfo.fMask = SEE_MASK_NOCLOSEPROCESS;
ShExecInfo.hwnd = NULL;
ShExecInfo.lpVerb = NULL;
ShExecInfo.lpFile = "TrustShip.exe ";
ShExecInfo.lpParameters = strParameter.c_str();
ShExecInfo.lpDirectory = NULL;
ShExecInfo.nShow = SW_HIDE;
ShExecInfo.hInstApp = NULL;
ShellExecuteEx(&ShExecInfo);