Click here to Skip to main content
15,894,362 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralCapturing Carriage Return in CEdit Pin
Dave Huff7-Feb-00 12:04
sussDave Huff7-Feb-00 12:04 
GeneralRE: Capturing Carriage Return in CEdit Pin
AT7-Feb-00 13:39
AT7-Feb-00 13:39 
GeneralRE: Capturing Carriage Return in CEdit Pin
Per Praem9-Feb-00 1:19
Per Praem9-Feb-00 1:19 
GeneralPrinting Condenced text Pin
Peter Zajac7-Feb-00 9:26
Peter Zajac7-Feb-00 9:26 
GeneralRE: Printing Condenced text Pin
Chris Maunder10-Feb-00 4:19
cofounderChris Maunder10-Feb-00 4:19 
GeneralRE: RE: Printing Condenced text Pin
Member 120896510-Feb-00 13:37
Member 120896510-Feb-00 13:37 
GeneralWM_COPYDATA or Shared Data Segment Pin
Ted7-Feb-00 5:50
Ted7-Feb-00 5:50 
QuestionHow do I safely shut down a thread, when I can't send a CEvent? Pin
bbrown4-Feb-00 21:25
bbrown4-Feb-00 21:25 
AnswerRE: How do I safely shut down a thread, when I can't send a CEvent? Pin
Mike Dunn5-Feb-00 7:25
Mike Dunn5-Feb-00 7:25 
AnswerRE: How do I safely shut down a thread, when I can't send a CEvent? Pin
Raghav Gupta8-Feb-00 12:53
Raghav Gupta8-Feb-00 12:53 
GeneralTab control or property sheets Pin
Matt4-Feb-00 12:29
Matt4-Feb-00 12:29 
GeneralGetting GUID from a control Pin
Brad Bruce4-Feb-00 7:44
Brad Bruce4-Feb-00 7:44 
GeneralRE: Getting GUID from a control Pin
Ghazi Wadi16-Feb-00 11:55
sussGhazi Wadi16-Feb-00 11:55 
QuestionHow Do I use VirtualListView (LVN_GETDISPINFO) with CRecordset? Pin
apavlenko3-Feb-00 18:41
apavlenko3-Feb-00 18:41 
AnswerRE: How Do I use VirtualListView (LVN_GETDISPINFO) with CRecordset? Pin
apavlenko3-Feb-00 19:16
apavlenko3-Feb-00 19:16 
Generallock toolbar position after docking Pin
Anonymous3-Feb-00 3:42
suss Anonymous3-Feb-00 3:42 
GeneralRE: lock toolbar position after docking Pin
Cristi Posea4-Feb-00 0:15
Cristi Posea4-Feb-00 0:15 
GeneralRE: lock toolbar position after docking Pin
Jesse Ezell5-Feb-00 19:13
Jesse Ezell5-Feb-00 19:13 
QuestionHow Do I Get/Set Mouse Sensitivity? Pin
Anonymous1-Feb-00 11:05
suss Anonymous1-Feb-00 11:05 
GeneralCreateFileMapping - Open it... Pin
braulio31-Jan-00 22:26
braulio31-Jan-00 22:26 
GeneralODBC Recordset Indexes Pin
Henry Venn31-Jan-00 21:51
Henry Venn31-Jan-00 21:51 
I have got a project where I link a couple of tables from an external database to use within a local Jet (access.mdb) database, for which purpose I use the DAO classes.

THE DATABASE
The external database Open() call looks like this :- m_dbExtern.Open(_T(""), TRUE, FALSE, _T("ODBC;"));
The empty name string combined with the "ODBC;" cause the Windows ODBC selection dialog to appear, and CDaoDatabase opens a link to that. SIDE ISSUE: Anyone know how to get this dialog to default to the SYSTEM tab rather than the USER?

THE RECORDSET
Originally I used the straight CRecordset classes but found DAO more flexible, but its flexible. I have a class derived from CDaoRecordset which contains static attributes mirrored to what is in the table I want to access.
The ODBC links to a database table written in dataflex which has a data definition file : here is the indexes it defines :-

INDEX# FIELDS DES U/C LENGTH LEVELS SEGMENTS MODE
------ --------------- --- --- ------ ------ -------- -------
1 CODE NO NO 6 3 1 ON-LINE

2 ALPHA NO NO 9 3 2 ON-LINE
RECNUM NO NO

3 CODE NO NO 8 3 2 ON-LINE
EMPL NO NO

4 CODE NO NO 11 3 3 ON-LINE
ALPHA NO NO
RECNUM NO NO

The thing is, I don't know much about these recordset classes, I just want CDaoRecordset::Open() to use INDEX #2, #3 or #4 - it is defaulting to INDEX #1. Dataflex is a pretty rare database, but it does have an ODBC driver written for it - perhaps this driver defines everything I need?

Hope someone can help me....P-l-ease!!!

Cheers,
H. Venn
QuestionHow to insert picture in CRichEditView ? !!!! Pin
Roma31-Jan-00 4:23
Roma31-Jan-00 4:23 
QuestionIPX and CSocket? Pin
Topher30-Jan-00 13:02
Topher30-Jan-00 13:02 
GeneralANNOUNCEMENT: New C/C++ source beautifier Pin
HPSI29-Jan-00 19:39
HPSI29-Jan-00 19:39 
GeneralProblems with Visual C++ Version 6 Pin
Subby Rajan29-Jan-00 7:15
sussSubby Rajan29-Jan-00 7:15 

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.