用ShellExecuteEx调用sqlplus的问题
调用oracle的sqlplus并且登录现在可以实现
SHELLEXECUTEINFO ShExecInfo = {0}; ShExecInfo.cbSize = sizeof(SHELLEXECUTEINFO); ShExecInfo.fMask = SEE_MASK_NOCLOSEPROCESS; ShExecInfo.hwnd = NULL; ShExecInfo.lpFile = _T("d:\\oracle\\ora81\\bin\\sqlplus.exe"); ShExecInfo.lpDirectory = NULL; ShExecInfo.nShow = SW_SHOW; ShExecInfo.hInstApp = NULL; ShExecInfo.lpVerb = _T("open"); ShExecInfo.lpParameters = _T("system/manager@mydb");//登录数据库 ShellExecuteEx(&ShExecInfo);