如何启动一个应用程序并且传进去一个变量? 1、如何启动一个应用程序并且传进去一个变量?被启动的程序接收这个变量是否是m_lpCmdLine 变量?2\如何改变单文档滚动条的宽度,是否自画,如何自画,最好给个小例子?谢谢! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 BOOL CreateProcess( LPCTSTR lpApplicationName, // pointer to name of executable module LPTSTR lpCommandLine, // pointer to command line string LPSECURITY_ATTRIBUTES lpProcessAttributes, // process security attributes LPSECURITY_ATTRIBUTES lpThreadAttributes, // thread security attributes BOOL bInheritHandles, // handle inheritance flag DWORD dwCreationFlags, // creation flags LPVOID lpEnvironment, // pointer to new environment block LPCTSTR lpCurrentDirectory, // pointer to current directory name LPSTARTUPINFO lpStartupInfo, // pointer to STARTUPINFO LPPROCESS_INFORMATION lpProcessInformation // pointer to PROCESS_INFORMATION);在32为系统最好用上面函数!也可以用:UINT WinExec( LPCSTR lpCmdLine, // address of command line UINT uCmdShow // window style for new application); lpCmdLine 是例如 "format /q"的字符串指针。 但是我却收不到这个变量传进来的值! if(!CreateProcess(filename, "nihao",NULL,NULL,NULL,NULL,NULL,NULL, &si, &pi)) AfxMessageBox("文件未找到");我是这样传的,在 被启动程序中, theApp.m_lpCmdLine怎么仍然为空,没有收到信息? 关于拼板游戏的问题 关于http回应包数据获取的一个问题? 为什么使用SelectClipRgn()函数剪切不掉区域之外的图形。 在VC++中如何同民ntext类型字段值交互 2台电脑,1台能ping通另一台,但是无法远程登录 Coblist中关于REmoveat()函数 关于文档视图结构的几点疑问? BYTE数组问题,100分! 有谁在windows下编译stardic成功! C++ ADO 多表数据 怎么在对话框中使用位图动态改变背景? 请教:两个应用程序间相互通讯的问题?请具体的。谢谢
LPCTSTR lpApplicationName,
// pointer to name of executable module
LPTSTR lpCommandLine, // pointer to command line string
LPSECURITY_ATTRIBUTES lpProcessAttributes, // process security attributes
LPSECURITY_ATTRIBUTES lpThreadAttributes, // thread security attributes
BOOL bInheritHandles, // handle inheritance flag
DWORD dwCreationFlags, // creation flags
LPVOID lpEnvironment, // pointer to new environment block
LPCTSTR lpCurrentDirectory, // pointer to current directory name
LPSTARTUPINFO lpStartupInfo, // pointer to STARTUPINFO
LPPROCESS_INFORMATION lpProcessInformation // pointer to PROCESS_INFORMATION
);
在32为系统最好用上面函数!
也可以用:
UINT WinExec(
LPCSTR lpCmdLine, // address of command line
UINT uCmdShow // window style for new application
);
lpCmdLine 是例如 "format /q"的字符串指针。
if(!CreateProcess(filename, "nihao",NULL,NULL,NULL,NULL,NULL,NULL,
&si,
&pi))
AfxMessageBox("文件未找到");我是这样传的,在 被启动程序中, theApp.m_lpCmdLine怎么仍然为空,没有收到信息?