Click here to Skip to main content
15,895,011 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: SetItemText Pin
Roman Fadeyev25-Nov-02 18:57
Roman Fadeyev25-Nov-02 18:57 
GeneralRe: SetItemText Pin
perlmunger25-Nov-02 19:39
perlmunger25-Nov-02 19:39 
GeneralRe: SetItemText Pin
Rage25-Nov-02 20:16
professionalRage25-Nov-02 20:16 
GeneralRe: SetItemText Pin
perlmunger26-Nov-02 3:52
perlmunger26-Nov-02 3:52 
GeneralMake programme identify multi-display Pin
TianYang25-Nov-02 17:56
TianYang25-Nov-02 17:56 
GeneralRe: Make programme identify multi-display Pin
Scott H. Settlemier26-Nov-02 6:50
Scott H. Settlemier26-Nov-02 6:50 
GeneralADO Field names Pin
devvvy25-Nov-02 16:44
devvvy25-Nov-02 16:44 
GeneralRe: ADO Field names Pin
perlmunger25-Nov-02 19:04
perlmunger25-Nov-02 19:04 
If you know the column number of the column name you're looking for, just do this:
short colIndex = 5;

CODBCFieldInfo info;
pRs->GetODBCFieldInfo(colIndex, info);

// do something with info.m_strName
// which now contains the column name

If you need to iterate through the fields, just get a column count with GetODBCFieldCount() on the recordset and loop through calling GetODBCFieldInfo each time.

Hope this helps.

-Matt

------------------------------------------

The 3 great virtues of a programmer:
Laziness, Impatience, and Hubris.
--Larry Wall
Generalthanks but.... Pin
devvvy25-Nov-02 20:33
devvvy25-Nov-02 20:33 
GeneralRe: thanks but.... Pin
Alexandru Savescu25-Nov-02 21:43
Alexandru Savescu25-Nov-02 21:43 
Generalhelp! ADO - how to determine if a field is PK/FK Pin
devvvy25-Nov-02 23:22
devvvy25-Nov-02 23:22 
Generalany ADO/C++ solution? Pin
devvvy26-Nov-02 7:58
devvvy26-Nov-02 7:58 
GeneralCreate a font from the resource file Pin
Hernan Breinbauer25-Nov-02 16:16
Hernan Breinbauer25-Nov-02 16:16 
GeneralRe: Create a font from the resource file Pin
Scott H. Settlemier26-Nov-02 8:10
Scott H. Settlemier26-Nov-02 8:10 
Questionhow do you kill a dialog? Pin
trustno125-Nov-02 14:53
trustno125-Nov-02 14:53 
AnswerRe: how do you kill a dialog? Pin
Chris Losinger25-Nov-02 15:01
professionalChris Losinger25-Nov-02 15:01 
GeneralRe: how do you kill a dialog? Pin
trustno125-Nov-02 21:03
trustno125-Nov-02 21:03 
GeneralListview images in LVS_REPORT mode Pin
trimtrom25-Nov-02 13:37
trimtrom25-Nov-02 13:37 
GeneralRe: Listview images in LVS_REPORT mode Pin
Roman Fadeyev25-Nov-02 18:24
Roman Fadeyev25-Nov-02 18:24 
GeneralRe: Listview images in LVS_REPORT mode Pin
trimtrom26-Nov-02 9:27
trimtrom26-Nov-02 9:27 
GeneralPhone Bill Pin
Autunmsky25-Nov-02 13:28
Autunmsky25-Nov-02 13:28 
GeneralRe: Phone Bill Pin
Christian Graus25-Nov-02 14:46
protectorChristian Graus25-Nov-02 14:46 
GeneralRe: Phone Bill Pin
Autunmsky25-Nov-02 14:59
Autunmsky25-Nov-02 14:59 
GeneralRe: Phone Bill Pin
Christian Graus25-Nov-02 15:06
protectorChristian Graus25-Nov-02 15:06 
GeneralRe: Phone Bill Pin
Autunmsky25-Nov-02 15:31
Autunmsky25-Nov-02 15:31 

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.