I have _bstr_t string and I have wchar_t and one unsigned int variables which I want to put to the string...
_bstr_t strCnn("Driver={SQL
Server};Server=some_host,some_port;Database=some_db;User
ID=some_user;Password=some_psw;");
wchar_t *host,
unsigned int port,
wchar_t *user,
wchar_t *password,
These 4 variables I pass to the function which does connection. Can you please guide me how to insert them to connection string. Thank you.
Aucun commentaire:
Enregistrer un commentaire