我使用vc调用oracle的数据导入工具sqlldr,但调用的时候总会出现dos命令行窗口,一晃而过,有什么办法消除这窗口出现?
调用程序如下:
sprintf(Execommand, "sqlldr.exe userid=%s/%s@%s control=%s",User, Pwd, Server, CtlFile);
if (system(Execommand) == -1)
{
*nProcessed = 0;
}
else
{
*nProcessed = 1;
}
调用程序如下:
sprintf(Execommand, "sqlldr.exe userid=%s/%s@%s control=%s",User, Pwd, Server, CtlFile);
if (system(Execommand) == -1)
{
*nProcessed = 0;
}
else
{
*nProcessed = 1;
}
解决方案 »
- 怎么知道从richedit中GetSelText出来的字符是不是汉字?
- 将Gdiplus.lib文件连编到项目中去是什么意思?
- 可生成release版的,出现下列错误!请问什么原因.
- 无聊!散分!走人!
- socket怎么连续的发送和接受数据?
- 如何让CListBox响印鼠标右键?
- 谁有mail程序的源代码
- VC操作ADO出错,十万火急,请大家务必多多UP,UP就有分,谢谢.................................................................
- 我怎么用directdraw把位图显示出来?(你们谁都会,很简单的!)
- vc++6.0 ODBC Access
- Windows刚启动时,如何SoftICE接管系统,调试驱动的加载过程?
- 如何制作启动画面????????????????????????????马上解决,立刻给分
switch (m_open)
{
case 0: MessageBox(_T("The system is out of memory or resources."));
break;
case ERROR_BAD_FORMAT: MessageBox(_T("The .EXE file is invalid (non-Win32 .EXE or error in .EXE image)."));
break;
case ERROR_FILE_NOT_FOUND: MessageBox(_T("The specified file was not found."));
break;
case ERROR_PATH_NOT_FOUND: MessageBox(_T("The specified path was not found."));
break;
default : MessageBox(_T("算是成功打开了应用程序!"));
break;
}