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

C / C++ / MFC

 
QuestionHow to know when a document is done downloading Pin
Richard Andrew x6430-Nov-06 12:27
professionalRichard Andrew x6430-Nov-06 12:27 
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 
For bookmarks, this link has the info: CRecordset::SetBookmark[^]


I've never heard of the CQueryDef class Smile | :)

I do direct queries through a CRecordset-derived class object (which represents a table).
There's a wizard to create these classes quickly from an existing database. The wizard-created
class has member variables for each column in the table, which are automagically filled with
the data for the current row as you scroll through result sets.

Something like:
pPatternStepTable = new CPatternStepTable(pDB); //pDB is a CDatabase (or derived) pointer
...
CString strQuery = "";
strQuery.Format("DELETE * FROM PatternStep WHERE DesignTimePattern = %ld", m_lPatternId);
pPatternStepTable->Open(CRecordset::dynaset, strQuery, CRecordset::executeDirect);
pPatternStepTable->Close();

Since these classes wrap the ODBC APIs, you also have the flexibility of making native calls
like this:
HSTMT hStmt;
::SQLAllocHandle(SQL_HANDLE_STMT, pDB->m_hdbc, &hStmt);
nSqlRet = ::SQLExecDirect(hStmt, (SQLTCHAR *)(const TCHAR *)strQuery, _tcslen(strQuery));
...etc.

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 
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 

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.