Click here to Skip to main content
15,914,820 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to know when a document is done downloading Pin
Richard Andrew x6430-Nov-06 14:35
professionalRichard Andrew x6430-Nov-06 14:35 
QuestionPorting VC++ 6.0 / DAO to VS2003 - what's the best non .NET db API? Pin
Christopher Duncan30-Nov-06 11:36
Christopher Duncan30-Nov-06 11:36 
AnswerRe: Porting VC++ 6.0 / DAO to VS2003 - what's the best non .NET db API? Pin
Mark Salsbery30-Nov-06 11:42
Mark Salsbery30-Nov-06 11:42 
GeneralRe: Porting VC++ 6.0 / DAO to VS2003 - what's the best non .NET db API? Pin
Christopher Duncan30-Nov-06 11:54
Christopher Duncan30-Nov-06 11:54 
GeneralRe: Porting VC++ 6.0 / DAO to VS2003 - what's the best non .NET db API? Pin
Mark Salsbery30-Nov-06 12:04
Mark Salsbery30-Nov-06 12:04 
GeneralRe: Porting VC++ 6.0 / DAO to VS2003 - what's the best non .NET db API? Pin
Christopher Duncan30-Nov-06 12:40
Christopher Duncan30-Nov-06 12:40 
GeneralRe: Porting VC++ 6.0 / DAO to VS2003 - what's the best non .NET db API? Pin
Mark Salsbery30-Nov-06 13:10
Mark Salsbery30-Nov-06 13:10 
GeneralRe: Porting VC++ 6.0 / DAO to VS2003 - what's the best non .NET db API? Pin
Christopher Duncan30-Nov-06 13:21
Christopher Duncan30-Nov-06 13:21 
Turns out that CDatabase has an ExecuteSQL(LPCSTR) method that handles the CQueryDef functionality, so I'm covered there.

I'd already looked at the SetBookmark help. The reason I was using the bookmark code was due to the fact that after you call CDaoRecordset::Update() the object no longer pointed to the record just updated. In other words,

// member variable in a given class
CRecordset m_rs;

m_rs.AddNew();
m_rs.SetSomeMemberVariables("record 42");
m_rs.Update()
// m_rs no longer points to "record 42"

Using GetLastModifiedBookmark(), I could set the current bookmark to the record just updated. Now I have no way of doing this.

How does CRecordset behave after a call to Update()? If it doesn't point to the record just updated, how do you get it back?


GeneralRe: Porting VC++ 6.0 / DAO to VS2003 - what's the best non .NET db API? Pin
Mark Salsbery30-Nov-06 13:39
Mark Salsbery30-Nov-06 13:39 
GeneralRe: Porting VC++ 6.0 / DAO to VS2003 - what's the best non .NET db API? Pin
Christopher Duncan30-Nov-06 13:49
Christopher Duncan30-Nov-06 13:49 
GeneralRe: Porting VC++ 6.0 / DAO to VS2003 - what's the best non .NET db API? Pin
Mark Salsbery30-Nov-06 14:04
Mark Salsbery30-Nov-06 14:04 
GeneralRe: Porting VC++ 6.0 / DAO to VS2003 - what's the best non .NET db API? Pin
Christopher Duncan1-Dec-06 5:10
Christopher Duncan1-Dec-06 5:10 
GeneralRe: Porting VC++ 6.0 / DAO to VS2003 - what's the best non .NET db API? Pin
Mark Salsbery1-Dec-06 6:25
Mark Salsbery1-Dec-06 6:25 
GeneralRe: Porting VC++ 6.0 / DAO to VS2003 - what's the best non .NET db API? Pin
Christopher Duncan3-Dec-06 15:43
Christopher Duncan3-Dec-06 15:43 
GeneralRe: Porting VC++ 6.0 / DAO to VS2003 - what's the best non .NET db API? Pin
Mark Salsbery3-Dec-06 16:37
Mark Salsbery3-Dec-06 16:37 
GeneralRe: Porting VC++ 6.0 / DAO to VS2003 - what's the best non .NET db API? Pin
Christopher Duncan3-Dec-06 16:41
Christopher Duncan3-Dec-06 16:41 
GeneralRe: Porting VC++ 6.0 / DAO to VS2003 - what's the best non .NET db API? Pin
Mark Salsbery3-Dec-06 16:46
Mark Salsbery3-Dec-06 16:46 
GeneralRe: Porting VC++ 6.0 / DAO to VS2003 - what's the best non .NET db API? Pin
Christopher Duncan3-Dec-06 16:48
Christopher Duncan3-Dec-06 16:48 
GeneralRe: Porting VC++ 6.0 / DAO to VS2003 - what's the best non .NET db API? Pin
Mark Salsbery3-Dec-06 17:04
Mark Salsbery3-Dec-06 17:04 
GeneralRe: Porting VC++ 6.0 / DAO to VS2003 - what's the best non .NET db API? Pin
Christopher Duncan3-Dec-06 17:13
Christopher Duncan3-Dec-06 17:13 
GeneralRe: Porting VC++ 6.0 / DAO to VS2003 - what's the best non .NET db API? Pin
Mark Salsbery3-Dec-06 17:31
Mark Salsbery3-Dec-06 17:31 
GeneralRe: Porting VC++ 6.0 / DAO to VS2003 - what's the best non .NET db API? Pin
Christopher Duncan3-Dec-06 17:34
Christopher Duncan3-Dec-06 17:34 
AnswerRe: Porting VC++ 6.0 / DAO to VS2003 - what's the best non .NET db API? Pin
Stephen Hewitt30-Nov-06 11:57
Stephen Hewitt30-Nov-06 11:57 
GeneralRe: Porting VC++ 6.0 / DAO to VS2003 - what's the best non .NET db API? Pin
Christopher Duncan30-Nov-06 11:59
Christopher Duncan30-Nov-06 11:59 
GeneralRe: Porting VC++ 6.0 / DAO to VS2003 - what's the best non .NET db API? Pin
Stephen Hewitt30-Nov-06 12:02
Stephen Hewitt30-Nov-06 12:02 

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.