ATL::CDataSource and dialog with a connection string in input



Hi,

Is it possible to set a ATL::CDataSource with a connection string to have
a dialog with some fields filled ?

ATL::CDataSource ds;

ds<---- my connection string

if (ds.Open()!=S_OK)

return;


BSTR bstr;

ds.GetInitializationString(&bstr, true);

Thanks,


.