Click here to Skip to main content
15,889,876 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Access specifier in multiple inheritance Pin
pasztorpisti30-Sep-13 23:11
pasztorpisti30-Sep-13 23:11 
QuestionAdodc : how to retrieve single value into EditBox Pin
coolerfantasy29-Sep-13 21:02
coolerfantasy29-Sep-13 21:02 
QuestionRe: Adodc : how to retrieve single value into EditBox Pin
David Crow30-Sep-13 3:07
David Crow30-Sep-13 3:07 
AnswerRe: Adodc : how to retrieve single value into EditBox Pin
coolerfantasy30-Sep-13 19:42
coolerfantasy30-Sep-13 19:42 
GeneralRe: Adodc : how to retrieve single value into EditBox Pin
Freak301-Oct-13 0:46
Freak301-Oct-13 0:46 
GeneralRe: Adodc : how to retrieve single value into EditBox Pin
coolerfantasy1-Oct-13 20:05
coolerfantasy1-Oct-13 20:05 
GeneralRe: Adodc : how to retrieve single value into EditBox Pin
Freak302-Oct-13 1:50
Freak302-Oct-13 1:50 
GeneralRe: Adodc : how to retrieve single value into EditBox Pin
coolerfantasy2-Oct-13 20:01
coolerfantasy2-Oct-13 20:01 
i made it ,,, partially !!
to inform you about my mdb file :-
its name (inventory.mdb)
it hase one table (Stocks)
the fields are (StockName,StockID,...)
now i can extract values from only the "StockName" which its string values
by the following code in button click :-
C++
m_ado.SetRecordSource ("SELECT * FROM Stocks");
m_ado.Refresh ();
C_Recordset m_Record = m_ado.GetRecordset ();// this line can be omitted !

COleVariant var1;
var1.vt = VT_I2;
var1.iVal = 1;
COleVariant value = m_ado.GetRecordset().GetFields().GetItem(var1).GetValue ();
m_edit = value.bstrVal;

 UpdateData (FALSE);

how to extract the other values such as "StockID" which its integer or any other fields ?
thanx .
GeneralRe: Adodc : how to retrieve single value into EditBox Pin
David Crow3-Oct-13 5:56
David Crow3-Oct-13 5:56 
GeneralRe: Adodc : how to retrieve single value into EditBox Pin
coolerfantasy5-Oct-13 19:46
coolerfantasy5-Oct-13 19:46 
Questionhow to configure googletest for "test code covearge" in visual studio 2010 [modified] Pin
pk jain29-Sep-13 19:35
pk jain29-Sep-13 19:35 
AnswerRe: how to configure googletest for "test code covearge" in visual studio 2010 [modified] Pin
Richard MacCutchan29-Sep-13 20:53
mveRichard MacCutchan29-Sep-13 20:53 
QuestionMonitoring application memory usage Pin
dushkin29-Sep-13 7:33
dushkin29-Sep-13 7:33 
SuggestionRe: Monitoring application memory usage Pin
David Crow29-Sep-13 16:40
David Crow29-Sep-13 16:40 
GeneralRe: Monitoring application memory usage Pin
dushkin29-Sep-13 20:12
dushkin29-Sep-13 20:12 
GeneralRe: Monitoring application memory usage Pin
David Crow30-Sep-13 3:06
David Crow30-Sep-13 3:06 
GeneralRe: Monitoring application memory usage Pin
jschell30-Sep-13 8:30
jschell30-Sep-13 8:30 
AnswerRe: Monitoring application memory usage Pin
ExcellentOrg29-Sep-13 23:48
ExcellentOrg29-Sep-13 23:48 
AnswerRe: Monitoring application memory usage Pin
Rolf Kristensen30-Sep-13 22:57
Rolf Kristensen30-Sep-13 22:57 
QuestionCSplitterWnd not showing Pin
Richard Andrew x6428-Sep-13 18:52
professionalRichard Andrew x6428-Sep-13 18:52 
SuggestionRe: CSplitterWnd not showing Pin
Richard MacCutchan28-Sep-13 21:24
mveRichard MacCutchan28-Sep-13 21:24 
AnswerRe: CSplitterWnd not showing Pin
«_Superman_»28-Sep-13 21:58
professional«_Superman_»28-Sep-13 21:58 
QuestionRe: CSplitterWnd not showing Pin
Richard Andrew x6429-Sep-13 5:10
professionalRichard Andrew x6429-Sep-13 5:10 
AnswerRe: CSplitterWnd not showing Pin
Richard MacCutchan29-Sep-13 7:13
mveRichard MacCutchan29-Sep-13 7:13 
AnswerRe: CSplitterWnd not showing Pin
Richard Andrew x6429-Sep-13 10:05
professionalRichard Andrew x6429-Sep-13 10:05 

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.