Click here to Skip to main content
15,899,026 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: MFC State Question (Calling MFC UI objects from non-UI objects) Pin
Mark Salsbery3-May-07 12:39
Mark Salsbery3-May-07 12:39 
AnswerRe: MFC State Question (Calling MFC UI objects from non-UI objects) Pin
mevatron14-May-07 3:21
mevatron14-May-07 3:21 
GeneralRe: MFC State Question (Calling MFC UI objects from non-UI objects) Pin
Mark Salsbery4-May-07 5:15
Mark Salsbery4-May-07 5:15 
GeneralRe: MFC State Question (Calling MFC UI objects from non-UI objects) Pin
mevatron14-May-07 11:24
mevatron14-May-07 11:24 
GeneralRe: MFC State Question (Calling MFC UI objects from non-UI objects) Pin
Mark Salsbery4-May-07 11:39
Mark Salsbery4-May-07 11:39 
GeneralRe: MFC State Question (Calling MFC UI objects from non-UI objects) Pin
mevatron15-May-07 8:08
mevatron15-May-07 8:08 
GeneralRe: MFC State Question (Calling MFC UI objects from non-UI objects) Pin
Mark Salsbery5-May-07 8:21
Mark Salsbery5-May-07 8:21 
QuestionHow to read Date types from a MDB Pin
nukoso3-May-07 11:59
nukoso3-May-07 11:59 
I Apologize if this isn't the forum to ask this...
I have a MS Access (MDB) file with a table with 2 date fields, i want to read from a dialog on my app (on MS Visual .NET Studio 2005), here's the code I've been using do far:
<br />
hr=theApp.m_cs.Open(theApp.m_ds);<br />
if(SUCCEEDED(hr)) {<br />
<br />
<br />
theApp.m_cs.StartTransaction();<br />
<br />
<br />
theApp.m_cs.Commit();<br />
CCommand< CDynamicAccessor > cmd;<br />
CComBSTR query(_T("SELECT NumContrato, NumClie, FechaC, FechaCob, Inversion, NoCobrador, NoVendedor, Total, Plazo, Pagos FROM Contrato"));<br />
CString string(query.m_str);<br />
cmd.Open(theApp.m_cs,string);<br />
<br />
hr = cmd.MoveFirst();<br />
<br />
query=static_cast< BSTR >(cmd.GetValue(1));<br />
CString csres(query.m_str);<br />
this->m_numc=(int)*(query.m_str);<br />
query=static_cast< BSTR >(cmd.GetValue(2));<br />
m_numcte=(int)*(query.m_str);<br />
query=static_cast< BSTR >(cmd.GetValue(3));<br />
//m_fecc=(int)*(query.m_str);<br />
<br />
MessageBox(csres);<br />
theApp.m_cs.Close();<br />
}<br />


FechaC, FechaCob, are the two Dates I want to retrieve, but when I debug, it reads a 0 (zero) from the date fields, is there a limitation? can they be read? is there a special way to read them?
> thanks in advance!

-----
Me!

QuestionProblem disabling IEEE 802.1x authentication when adding a network to WZC through WZC API Pin
ceNewbie3-May-07 8:17
ceNewbie3-May-07 8:17 
QuestionMCI source code Pin
YUANGE3-May-07 6:54
YUANGE3-May-07 6:54 
QuestionRe: MCI source code Pin
Maximilien3-May-07 7:13
Maximilien3-May-07 7:13 
AnswerRe: MCI source code Pin
Hamid_RT3-May-07 7:50
Hamid_RT3-May-07 7:50 
QuestionCTreeCtrl Pin
CDRAIN3-May-07 5:16
CDRAIN3-May-07 5:16 
AnswerRe: CTreeCtrl Pin
PJ Arends3-May-07 5:39
professionalPJ Arends3-May-07 5:39 
GeneralRe: CTreeCtrl Pin
CDRAIN3-May-07 6:10
CDRAIN3-May-07 6:10 
GeneralRe: CTreeCtrl Pin
PJ Arends3-May-07 14:06
professionalPJ Arends3-May-07 14:06 
GeneralRe: CTreeCtrl Pin
Maximilien3-May-07 6:35
Maximilien3-May-07 6:35 
GeneralRe: CTreeCtrl Pin
CDRAIN3-May-07 6:50
CDRAIN3-May-07 6:50 
QuestionHow to write into and read from a string table? Pin
TheInfernalCrow3-May-07 4:15
TheInfernalCrow3-May-07 4:15 
AnswerRe: How to write into and read from a string table? Pin
David Crow3-May-07 4:19
David Crow3-May-07 4:19 
QuestionRe: How to write into and read from a string table? Pin
TheInfernalCrow11-May-07 2:42
TheInfernalCrow11-May-07 2:42 
AnswerRe: How to write into and read from a string table? Pin
David Crow11-May-07 2:52
David Crow11-May-07 2:52 
Questionerror LNK 2019 Pin
sandeepkavade3-May-07 4:00
sandeepkavade3-May-07 4:00 
AnswerRe: error LNK 2019 Pin
krmed3-May-07 4:04
krmed3-May-07 4:04 
QuestionCreating a new window in a thread Pin
iayd3-May-07 3:57
iayd3-May-07 3:57 

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.