str.Format("%d",n);
strCmd = "updatedata_tele @id = " + str + ",@value = 1.456";
m_pCommand->CommandText = (_bstr_t)strCmd;
m_pCommand->Execute(NULL, NULL, adCmdStoredProc);在执行Execute时出错,怎么回事啊?谢谢!
strCmd = "updatedata_tele @id = " + str + ",@value = 1.456";
m_pCommand->CommandText = (_bstr_t)strCmd;
m_pCommand->Execute(NULL, NULL, adCmdStoredProc);在执行Execute时出错,怎么回事啊?谢谢!
解决方案 »
- [help]IE调用进程外组件的连接点问题
- 用户登录程序的问题
- 外包一个播放器界面,承接者最好是北京的
- 请问如何在最小化时将窗体隐藏?Win32环境下
- 是不是有了.NET,就不需要COM+程序了呢?本人比较菜,现在要写个网上跑的DB程序,不知道用什么技术好些,希望高人们帮帮忙,多给些建议,
- 真心求解回调函数
- 高手,如何用程序设置windows的默认声卡(我的机上有两个显卡)
- 工具条中增加一button的问题~~~~~~~~~~~~~~~
- 我想在windows2000下不能格式化我的移动磁盘并给我提示,而在windows98下要调动我的格式化程序,我该怎么做?急....
- 如何将 .doc .ppt .xls .pdf .txt 和 .zip 文档自动转化为notes文档?
- 怎样将二进制字符串和十六进制字符串相互转换呀??
- 有谁知道金山词霸的那一个个网页是怎么生成的?急!
_ConnectionPtr adoConn(__unidof(Connection));
_CommandPtr adoCmd(__uuidof(Command));adoConn->Open(_bstr_t(m_strConnection),"","",-1);
adoCmd->ActiveConnection = adoConn;adoCmd->CommandText = _bstr_t(m_strCmdText);
adoCmd->CommandType = adCmdStoredProc;_ParameterPtr parm;
//存储过程的输入参数
parm = adoCmd->CreateParameter("input",adInteger,adParamInput,4,m_iInput);
adoCmd->Parameters->Append(parm);
parm = adoCmd->CreateParameter("output",adInteger,adParamOutput,4,m_iOutput);
adoCmd->Parameters->Append(parm);adoCnd->Execute(NULL,NULL,-1);long i = 8;
m_iOutput = adoCmd->Parameters->Item[i]->Value;
我把语句
m_pCommand->Execute(NULL, NULL, adCmdStoredProc);
中的最后一个参数改成-1就可以运行了,不知道为什么会这样?多谢各位了,哈哈