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

C / C++ / MFC

 
GeneralRe: CDatabase connection fails with different directory path. Pin
bob1697225-May-08 16:45
bob1697225-May-08 16:45 
GeneralRe: CDatabase connection fails with different directory path. Pin
Vaclav_25-May-08 15:46
Vaclav_25-May-08 15:46 
QuestionRe: CDatabase connection fails with different directory path. Pin
bob1697225-May-08 16:47
bob1697225-May-08 16:47 
GeneralRe: CDatabase connection fails with different directory path. Pin
bob1697225-May-08 15:43
bob1697225-May-08 15:43 
GeneralRe: CDatabase connection fails with different directory path. Pin
Vaclav_26-May-08 4:06
Vaclav_26-May-08 4:06 
GeneralRe: CDatabase connection fails with different directory path. Pin
bob1697226-May-08 4:20
bob1697226-May-08 4:20 
GeneralCHANGED SUBJECT - Now quest for invalid descriptor index !! Pin
Vaclav_26-May-08 7:22
Vaclav_26-May-08 7:22 
GeneralRe: CHANGED SUBJECT - Now quest for invalid descriptor index !! Pin
Vaclav_27-May-08 8:16
Vaclav_27-May-08 8:16 
HERE IS MY FINAL ANSWER!!!
MFC CRecordset wizard builds (MS calls it binds )
DoFieldExchange(CFieldExchange* pFX) and puts the calls to
RFX_... functions
example
RFX_Long(pFX, _T("[ContactID]"), m_ContactID);

IN ALPHABETICAL ORDER !!!!!

Logically, it has no other ordering choice anyway.

The SQL SELECT * reads the fields/columns in ascending NUMERICAL order.
This must be the mysterious descriptor index!

So, when CRecordset does Update the data does into database fields in ALPHABETICAL order and you get all kinds of error messages – including the Invalid Descriptor Index - and no update at all.
If the CRecordset has variables (build by wizard) from more than one data table – just forget it and go fishing!

Actually - IMHO using wizard to derive class from CRecordset is the buggiest code in MFC. It never works on first try.

Cheers Vaclav
QuestionSetting Windows Environment Variables programmatically (win32/mfc) [modified] Pin
Manu.Dev25-May-08 2:24
Manu.Dev25-May-08 2:24 
AnswerRe: Setting Windows Environment Variables programmatically (win32/mfc) Pin
Jijo.Raj25-May-08 2:42
Jijo.Raj25-May-08 2:42 
GeneralRe: Setting Windows Environment Variables programmatically (win32/mfc) Pin
Manu.Dev25-May-08 3:21
Manu.Dev25-May-08 3:21 
QuestionProblem with ultimate toolbox and FileExlorer Pin
CrocodileBuck25-May-08 2:15
CrocodileBuck25-May-08 2:15 
AnswerRe: Problem with ultimate toolbox and FileExlorer Pin
CrocodileBuck25-May-08 21:55
CrocodileBuck25-May-08 21:55 
QuestionWindows XP Desktop Panel Pin
taliadon25-May-08 2:03
taliadon25-May-08 2:03 
Questioni want to convert source made by c++ to c. Pin
sunerbun24-May-08 21:48
sunerbun24-May-08 21:48 
AnswerRe: i want to convert source made by c++ to c. Pin
prasad_som24-May-08 23:32
prasad_som24-May-08 23:32 
AnswerRe: i want to convert source made by c++ to c. Pin
CPallini24-May-08 23:58
mveCPallini24-May-08 23:58 
AnswerRe: i want to convert source made by c++ to c. Pin
Jijo.Raj25-May-08 0:04
Jijo.Raj25-May-08 0:04 
AnswerRe: i want to convert source made by c++ to c. Pin
Christian Graus25-May-08 2:00
protectorChristian Graus25-May-08 2:00 
AnswerRe: i want to convert source made by c++ to c. Pin
Hamid_RT25-May-08 2:26
Hamid_RT25-May-08 2:26 
GeneralRe: i want to convert source made by c++ to c. Pin
CPallini25-May-08 3:05
mveCPallini25-May-08 3:05 
JokeRe: i want to convert source made by c++ to c. Pin
Hamid_RT25-May-08 4:27
Hamid_RT25-May-08 4:27 
QuestionGet file size Pin
pl_kode24-May-08 21:37
pl_kode24-May-08 21:37 
AnswerRe: Get file size Pin
shaderx24-May-08 22:01
shaderx24-May-08 22:01 
JokeRe: Get file size Pin
Doc Lobster24-May-08 23:31
Doc Lobster24-May-08 23: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.