Click here to Skip to main content
15,895,283 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: EnableWindow Help Pin
Eytukan5-Jan-07 17:10
Eytukan5-Jan-07 17:10 
AnswerRe: EnableWindow Help Pin
Eytukan5-Jan-07 17:14
Eytukan5-Jan-07 17:14 
AnswerRe: EnableWindow Help Pin
Hamid_RT5-Jan-07 19:06
Hamid_RT5-Jan-07 19:06 
GeneralRe: EnableWindow Help Pin
celllllllll9-Jan-07 8:26
celllllllll9-Jan-07 8:26 
GeneralRe: EnableWindow Help Pin
Hamid_RT9-Jan-07 18:08
Hamid_RT9-Jan-07 18:08 
QuestionSomewhat advanced C++ question... Pin
CAgent0075-Jan-07 13:33
CAgent0075-Jan-07 13:33 
AnswerRe: Somewhat advanced C++ question... Pin
PJ Arends5-Jan-07 13:46
professionalPJ Arends5-Jan-07 13:46 
GeneralRe: Somewhat advanced C++ question... Pin
CAgent0075-Jan-07 13:54
CAgent0075-Jan-07 13:54 
_RecordsetPtr

Here is more of the code, including the code I already submitted:

CoInitialize(NULL);<br />
	try<br />
	{<br />
		_RecordsetPtr pGetInfo("ADODB.Recordset");<br />
		_bstr_t strMyDB("DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=FinalDB.mdb");<br />
		pGetInfo->Open("SELECT * FROM [Video];", strMyDB, adOpenKeyset, adLockOptimistic, adCmdText);<br />
		pGetInfo->MoveFirst();<br />
		while (!pGetInfo->EndOfFile)<br />
		{<br />
			sID = (char*) ( (_bstr_t) pGetInfo->GetFields()->GetItem("Vid_ID")->GetValue() );<br />
			sTitle = (char*) ( (_bstr_t) pGetInfo->GetFields()->GetItem("Vid_Title")->GetValue() );<br />
			sFormat = (char*) ( (_bstr_t) pGetInfo->GetFields()->GetItem("Vid_Format")->GetValue() );<br />
			<br />
vVidList[iIndex].getVidID(sID);<br />
vVidList[iIndex].getVidTitle(sTitle);<br />
vVidList[iIndex].getVidFormat(sFormat);<br />
//vVidList[iIndex].getVidNumTotal(iVidTotal);<br />
			//vVidList[iIndex].getVidNumAvail(iVidAvail);<br />
			<br />
			pGetInfo->MoveNext();<br />
			iIndex++;<br />
		}<br />
		pGetInfo->Close();<br />
	}<br />
	catch (_com_error &e)<br />
	{<br />
		cout << (char*) e.Description() << endl;<br />
	}<br />
	::CoUninitialize();

What can I do without having to write two different sets of code: one for string, and one for integers?
AnswerRe: Somewhat advanced C++ question... Pin
CoffeeAddict195-Jan-07 14:38
CoffeeAddict195-Jan-07 14:38 
AnswerRe: Somewhat advanced C++ question... Pin
Eytukan5-Jan-07 17:08
Eytukan5-Jan-07 17:08 
GeneralRe: Somewhat advanced C++ question... Pin
CAgent0078-Jan-07 8:13
CAgent0078-Jan-07 8:13 
GeneralRe: Somewhat advanced C++ question... Pin
Eytukan8-Jan-07 19:32
Eytukan8-Jan-07 19:32 
QuestionChanging the color of a pen or brush on the fly? Pin
CoffeeAddict195-Jan-07 10:20
CoffeeAddict195-Jan-07 10:20 
AnswerRe: Changing the color of a pen or brush on the fly? Pin
Christian Graus5-Jan-07 10:46
protectorChristian Graus5-Jan-07 10:46 
Questiondt_dll sample of windows platform sdk Pin
jfranzoy5-Jan-07 10:09
jfranzoy5-Jan-07 10:09 
AnswerRe: dt_dll sample of windows platform sdk Pin
Dominik Reichl5-Jan-07 11:22
Dominik Reichl5-Jan-07 11:22 
Questionwhats wrong with this code? Pin
arbster5-Jan-07 9:18
arbster5-Jan-07 9:18 
AnswerRe: whats wrong with this code? Pin
Michael Dunn5-Jan-07 9:29
sitebuilderMichael Dunn5-Jan-07 9:29 
AnswerRe: whats wrong with this code? Pin
David Crow5-Jan-07 10:07
David Crow5-Jan-07 10:07 
GeneralRe: whats wrong with this code? Pin
Cristian Amarie5-Jan-07 20:56
Cristian Amarie5-Jan-07 20:56 
GeneralRe: whats wrong with this code? Pin
Stephen Hewitt7-Jan-07 11:48
Stephen Hewitt7-Jan-07 11:48 
GeneralRe: whats wrong with this code? Pin
Cristian Amarie7-Jan-07 20:16
Cristian Amarie7-Jan-07 20:16 
AnswerRe: whats wrong with this code? Pin
Hamid_RT5-Jan-07 18:55
Hamid_RT5-Jan-07 18:55 
QuestionEnabling and Diabling a Control Pin
celllllllll5-Jan-07 8:07
celllllllll5-Jan-07 8:07 
AnswerRe: Enabling and Diabling a Control Pin
Eytukan5-Jan-07 8:19
Eytukan5-Jan-07 8:19 

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.