ADO对连接对象的ado open命令采用什么类型的字符串。是ANSI或_bstr_t还是wchar_t? [英] What type of string does ADO 's ado open command for connection object take.Is it ANSI of or _bstr_t or wchar_t?

查看:78
本文介绍了ADO对连接对象的ado open命令采用什么类型的字符串。是ANSI或_bstr_t还是wchar_t?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

ADO对连接对象的ado open命令采用什么类型的字符串。是ANSI或_bstr_t还是wchar_t?





一些例子使用ANSI一些使用_bstr(LSome String)。

哪个字符串真的是正确使用的字符串,或者是否所有上面提到的str都可以接受?

What type of string does ADO 's ado open command for connection object take.Is it ANSI of or _bstr_t or wchar_t?


Some examples use ANSI some use _bstr(L"Some String").
Which string is really the right string to use or is it that all the above mentioned str are acceptable?

推荐答案

它的BSTR,在你的情况下_bstr_t。检查以下网址



连接(ADO for Visual C ++语法) [ ^ ]
Its BSTR, in ur case _bstr_t. Check below url

Connection (ADO for Visual C++ Syntax)[^]


这篇关于ADO对连接对象的ado open命令采用什么类型的字符串。是ANSI或_bstr_t还是wchar_t?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆