Ein Problem,
wenn ich mit VC Assistent eine SDI Anwendung mit OLE DB Verbindung erstelle funktioniert die DB Verbindung , sobald ich aber ganz normalen Dialog erstelle und da die OLE DB Verbindung alleine tippen will funktioniert es nicht obwohl es ist alles gleich
CDBPropSet dbinit(DBPROPSET_DBINIT);
dbinit.AddProperty(DBPROP_AUTH_PASSWORD, "password");
dbinit.AddProperty(DBPROP_AUTH_PERSIST_SENSITIVE_AUTHINFO, false);
dbinit.AddProperty(DBPROP_AUTH_USERID, "sa");
dbinit.AddProperty(DBPROP_INIT_CATALOG,"DB");
dbinit.AddProperty(DBPROP_INIT_DATASOURCE, "SERVERNAME");
dbinit.AddProperty(DBPROP_INIT_LCID, (long)1031);
dbinit.AddProperty(DBPROP_INIT_PROMPT, (short)4);
hr = db.OpenWithServiceComponents("SQLOLEDB.1", &dbinit);//hier kriege ich Probleme
if (FAILED(hr))
return hr;
hr = session.Open(db);
if (FAILED(hr))
return hr;
[/PHP]