请问有人可以解释在此数据库查询代码中包含_variant_t vtEmpty和_variant_t vtEmpty2的原因吗? [英] Please can someone explain the reason for the inclusion of _variant_t vtEmpty and _variant_t vtEmpty2 in this database query code?
本文介绍了请问有人可以解释在此数据库查询代码中包含_variant_t vtEmpty和_variant_t vtEmpty2的原因吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在。代码位于:
http://support.microsoft.com/kb/181734
非常感谢。
The. code is located at:
http://support.microsoft.com/kb/181734
Thanks a lot.
推荐答案
请参阅执行方法 [ ^ ]。参数是可选的,但必须在使用C ++时指定。
使用值DISP_E_PARAMNOTFOUND
的VT_ERROR
类型表示未使用可选参数。另请参阅 Visual中的缺失和默认参数部分C ++ ADO编程 [ ^ ]。
See the Execute Method[^] in the MSDN. The parameters are optional but must be specified when using C++.
TheVT_ERROR
type with valueDISP_E_PARAMNOTFOUND
is used to indicate that an optional parameter is not used. See also the section 'Missing and Default Parameters' at Visual C++ ADO Programming[^].
这篇关于请问有人可以解释在此数据库查询代码中包含_variant_t vtEmpty和_variant_t vtEmpty2的原因吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文