Click here to Skip to main content
15,924,193 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: getting info from VS_VERSION_INFO? Pin
BlackDice23-Sep-04 7:22
BlackDice23-Sep-04 7:22 
QuestionHow to avoid editing date in Datetime picker ? Pin
ldaoust22-Sep-04 10:48
ldaoust22-Sep-04 10:48 
GeneralOnWizardNext question ... Pin
Maximilien22-Sep-04 10:17
Maximilien22-Sep-04 10:17 
GeneralRe: OnWizardNext question ... Pin
Michael Dunn22-Sep-04 11:43
sitebuilderMichael Dunn22-Sep-04 11:43 
GeneralRe: OnWizardNext question ... Pin
Maximilien22-Sep-04 15:26
Maximilien22-Sep-04 15:26 
QuestionODBC, ADO or OLEDB ? Pin
0v3rloader22-Sep-04 10:15
0v3rloader22-Sep-04 10:15 
AnswerRe: ODBC, ADO or OLEDB ? Pin
Alexander M.,22-Sep-04 10:38
Alexander M.,22-Sep-04 10:38 
AnswerRe: ODBC, ADO or OLEDB ? Pin
Anonymous22-Sep-04 17:30
Anonymous22-Sep-04 17:30 
Yes, ADO uses OLEDB. Using OLEDB will give you the most functionality and performance. Consider using ATL wrapper classes, they'll make it easier. For example:

<br />
HRESULT hr = spDataInitialize.CoCreateInstance(CLSID_MSDAINITIALIZE);<br />
	if(FAILED(hr)) return 1;<br />
<br />
	hr = spDataInitialize->GetDataSource(NULL, CLSCTX_INPROC_SERVER, pwszConnectionString,<br />
										 IID_IDBInitialize, reinterpret_cast<IUnknown**>(&spDBInitialize));<br />
	if(FAILED(hr)) return 1;<br />
<br />
	hr = spDBInitialize->Initialize();<br />
	if(FAILED(hr)) return 1;<br />
<br />
	ATL::CComQIPtr<IDBCreateSession> spDBCreateSession = spDBInitialize;<br />
	if(!spDBCreateSession) return 1;<br />
<br />
	hr = spDBCreateSession->CreateSession(NULL, IID_IDBCreateCommand, reinterpret_cast<IUnknown**>(&spDBCreateCommand));<br />
	if(FAILED(hr)) return 1;<br />
<br />
	hr = spDBCreateCommand->CreateCommand(NULL, IID_ICommand, reinterpret_cast<IUnknown**>(&spCommand));<br />
	if(FAILED(hr)) return 1;<br />
<br />
	ATL::CComQIPtr<ICommandStream> spCommandStream = spCommand;<br />
	if(!spCommandStream) return 1;

GeneralRe: ODBC, ADO or OLEDB ? Pin
Anonymous22-Sep-04 17:35
Anonymous22-Sep-04 17:35 
AnswerRe: ODBC, ADO or OLEDB ? Pin
cmk22-Sep-04 22:22
cmk22-Sep-04 22:22 
GeneralRe: ODBC, ADO or OLEDB ? Pin
0v3rloader23-Sep-04 4:39
0v3rloader23-Sep-04 4:39 
GeneralRe: ODBC, ADO or OLEDB ? Pin
cmk23-Sep-04 10:46
cmk23-Sep-04 10:46 
QuestionCreating an escaped windows path? Pin
hyling22-Sep-04 8:20
hyling22-Sep-04 8:20 
AnswerRe: Creating an escaped windows path? Pin
David Crow22-Sep-04 8:35
David Crow22-Sep-04 8:35 
GeneralRe: Creating an escaped windows path? Pin
hyling22-Sep-04 8:42
hyling22-Sep-04 8:42 
GeneralRe: Creating an escaped windows path? Pin
David Crow22-Sep-04 8:53
David Crow22-Sep-04 8:53 
GeneralRe: Creating an escaped windows path? Pin
hyling22-Sep-04 9:12
hyling22-Sep-04 9:12 
GeneralRe: Creating an escaped windows path? Pin
David Crow22-Sep-04 9:23
David Crow22-Sep-04 9:23 
GeneralRe: Creating an escaped windows path? Pin
hyling22-Sep-04 9:45
hyling22-Sep-04 9:45 
GeneralStruggling with multiple views Pin
Budric B.22-Sep-04 8:09
Budric B.22-Sep-04 8:09 
GeneralRe: Struggling with multiple views Pin
Jeff Bogan22-Sep-04 8:30
Jeff Bogan22-Sep-04 8:30 
GeneralRe: Struggling with multiple views Pin
Budric B.22-Sep-04 8:45
Budric B.22-Sep-04 8:45 
GeneralRe: Struggling with multiple views Pin
Jeff Bogan22-Sep-04 9:02
Jeff Bogan22-Sep-04 9:02 
GeneralRe: Thanks Pin
Budric B.22-Sep-04 9:50
Budric B.22-Sep-04 9:50 
GeneralRe: Thanks Pin
Jeff Bogan22-Sep-04 9:53
Jeff Bogan22-Sep-04 9:53 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.