Click here to Skip to main content
15,896,915 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generaltree controls in unicode... Pin
lauren28-Aug-00 21:03
lauren28-Aug-00 21:03 
GeneralCursor pointer color Pin
sunny28-Aug-00 15:54
sunny28-Aug-00 15:54 
GeneralRe: Cursor pointer color Pin
Ezz Khayyat29-Aug-00 3:46
professionalEzz Khayyat29-Aug-00 3:46 
General*** Retriving Rows of Data from Access Tables ** Pin
Steve Lai28-Aug-00 15:40
Steve Lai28-Aug-00 15:40 
GeneralRe: *** Retriving Rows of Data from Access Tables ** Pin
lauren28-Aug-00 21:07
lauren28-Aug-00 21:07 
GeneralRe: *** Retriving Rows of Data from Access Tables ** Pin
Steve Lai29-Aug-00 10:39
Steve Lai29-Aug-00 10:39 
GeneralRe: *** Retriving Rows of Data from Access Tables ** Pin
lauren30-Aug-00 3:09
lauren30-Aug-00 3:09 
GeneralRe: *** Retriving Rows of Data from Access Tables ** Pin
Steve Driessens28-Aug-00 22:28
Steve Driessens28-Aug-00 22:28 
G'day Steve,

Check out CDaoTableDef and CDaoFieldInfo.

Here's a (very) rough example...

<br />
CDaoDatabase db;<br />
db.Open("DatabaseFileName.mdb", ...other parms...);<br />
<br />
CDaoTableDef td(&db);<br />
td.Open("MyTable");<br />
<br />
for(int i = 0; i < td.GetFieldCount(); i++){<br />
    CDaoFieldInfo fi;<br />
    td.GetFieldInfo(i, &fi);<br />
<br />
    // The field's name will be in fi.m_strName;<br />
    TRACE(_T("Field[%d]: %s\n"), i, fi.m_strName);<br />
}<br />
<br />
td.Close();<br />
db.Close();<br />


Hope this helps,
Steve
GeneralRe: *** Retriving Rows of Data from Access Tables ** Pin
Steve Driessens28-Aug-00 22:49
Steve Driessens28-Aug-00 22:49 
GeneralRe: *** Retriving Rows of Data from Access Tables ** Pin
Steve Lai29-Aug-00 10:41
Steve Lai29-Aug-00 10:41 
GeneralRe: *** Retriving Rows of Data from Access Tables ** Pin
Steve Driessens29-Aug-00 15:02
Steve Driessens29-Aug-00 15:02 
GeneralRe: *** Having Trouble! ** Pin
Steve Lai30-Aug-00 12:04
Steve Lai30-Aug-00 12:04 
Questiondll assumptions? Pin
trey28-Aug-00 11:16
trey28-Aug-00 11:16 
AnswerRe: dll assumptions? Pin
Michael Dunn28-Aug-00 13:55
sitebuilderMichael Dunn28-Aug-00 13:55 
GeneralTab Control Pin
sunny28-Aug-00 6:57
sunny28-Aug-00 6:57 
GeneralFunction pointer in C++ Pin
bah28-Aug-00 5:04
bah28-Aug-00 5:04 
GeneralRe: Function pointer in C++ Pin
myself28-Aug-00 6:29
myself28-Aug-00 6:29 
GeneralRe: Function pointer in C++ Pin
Michael Dunn28-Aug-00 7:58
sitebuilderMichael Dunn28-Aug-00 7:58 
GeneralFile Comparing Pin
Shibu.m.b27-Aug-00 3:11
sussShibu.m.b27-Aug-00 3:11 
GeneralFile Comparing Pin
Shibu.m.b27-Aug-00 3:07
sussShibu.m.b27-Aug-00 3:07 
GeneralImage Comparison Pin
Shaji.S.Nair27-Aug-00 2:48
sussShaji.S.Nair27-Aug-00 2:48 
QuestionLaunch program when window starts? Pin
Eq26-Aug-00 22:11
Eq26-Aug-00 22:11 
AnswerRe: Launch program when window starts? Pin
HP28-Aug-00 20:00
HP28-Aug-00 20:00 
QuestionLaunch program when window starts? Pin
Eq26-Aug-00 22:11
Eq26-Aug-00 22:11 
AnswerRe: Launch program when window starts? Pin
trey27-Aug-00 6:30
trey27-Aug-00 6:30 

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.