假设销售界面的可执行程序为xiaoshou.exe,路径在d:\xs下,在登陆按钮的响应函数中添加如下内容
//开启.exe进程 STARTUPINFO startInf; startInf.cb = sizeof(STARTUPINFO); startInf.lpReserved = NULL; startInf.lpDesktop = NULL; startInf.lpTitle = NULL; startInf.dwFlags = STARTF_USESHOWWINDOW; startInf.cbReserved2 = 0; startInf.lpReserved2 = NULL; startInf.wShowWindow = SW_SHOWNORMAL; CString strExePath = d:\\xs\\xiaoshou.exe; PROCESS_INFORMATION procInf; CreateProcess(strExePath, xiaoshou.exe, NULL, NULL, FALSE, 0, NULL, NULL, &startInf, &procInf);
Copyright © 2025 IZhiDa.com All Rights Reserved.
知答 版权所有 粤ICP备2023042255号