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

C / C++ / MFC

 
GeneralRe: EnableWindow Help Pin
celllllllll5-Jan-07 14:15
celllllllll5-Jan-07 14:15 
GeneralRe: EnableWindow Help Pin
Mark Salsbery5-Jan-07 14:25
Mark Salsbery5-Jan-07 14:25 
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 
To my fellow C++.NET Programmers, I thank you for reading my question.
I have somewhat of a pickle to deal with. A friend of mine might have asked the same question, but here it is:

I am writing code for a console project using a Microsoft Access database for reading information. The database consists of video titles, their types (DVD/VHS), and the amounts. The titles and types are being read as strings. My problem is that I cannot read the amounts as integers.

Here is some of my code:
The first three lines read the strings. The two that follow are nonexistent.
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 />
iAmount = (???)<br />
iAvailable = (???)<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);


How can I read the information as integers in this case? Thanks!!!

Thank you for reading!
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 
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 

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.