Click here to Skip to main content
15,902,836 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: the title of the window Pin
David Crow13-Jun-03 3:21
David Crow13-Jun-03 3:21 
GeneralRe: the title of the window Pin
basementman13-Jun-03 4:41
basementman13-Jun-03 4:41 
GeneralRe: the title of the window Pin
David Crow13-Jun-03 4:48
David Crow13-Jun-03 4:48 
GeneralSetPriorityClass Pin
Jerome Conus12-Jun-03 23:24
Jerome Conus12-Jun-03 23:24 
GeneralRe: SetPriorityClass Pin
Ryan Binns12-Jun-03 23:39
Ryan Binns12-Jun-03 23:39 
Generalmemory mapped files question Pin
Niko Tanghe12-Jun-03 22:49
Niko Tanghe12-Jun-03 22:49 
GeneralDatabase Problem! Pin
vcseeker12-Jun-03 22:35
vcseeker12-Jun-03 22:35 
GeneralRe: Database Problem! Pin
Toni7812-Jun-03 23:20
Toni7812-Jun-03 23:20 
I don't use CRecordset class but I use ADO recordset and I had the exact same problem that you are describing. My problem was that the fields that I was updating were set to null, so I had to go and change their status flag manually to "Field OK".
The problem was that every new row that you add to your database has to have values that are initialized to some acceptable value. For strings for example it would be a good idea to initialize them to a space " ". Let's say that you have a table with three fields:
fieldInt | fieldDbl | fieldStr |
When you want to add a new row to this table you should initialize these fields first.
recordset.fieldInt = 0;
recordset.fieldDbl = 0;
recordset.fieldStr = " ";
// Then do some stuff like changing the values of these fields with the data that you get from the file.
recordset.AddNew();
I hope you understood this confusing description. And by the way, I looked at CRecordset class and probably you should call the function IsFieldNull() to check the fields.

// Afterall I realized that even my comment lines have bugs
GeneralRe: Database Problem! Pin
basementman13-Jun-03 4:48
basementman13-Jun-03 4:48 
QuestionCount lines of code in a VS7 solution? Pin
Juan Miguel Venturello12-Jun-03 22:26
Juan Miguel Venturello12-Jun-03 22:26 
AnswerRe: Count lines of code in a VS7 solution? Pin
Franz Klein12-Jun-03 23:16
Franz Klein12-Jun-03 23:16 
GeneralRe: Count lines of code in a VS7 solution? Pin
Juan Miguel Venturello12-Jun-03 23:34
Juan Miguel Venturello12-Jun-03 23:34 
Generalsim printf Pin
parths12-Jun-03 21:59
parths12-Jun-03 21:59 
GeneralRe: sim printf Pin
Ryan Binns12-Jun-03 22:20
Ryan Binns12-Jun-03 22:20 
GeneralRe: sim printf Pin
parths13-Jun-03 2:12
parths13-Jun-03 2:12 
GeneralProblem with Font.Escapement Pin
Nuehli12-Jun-03 21:45
Nuehli12-Jun-03 21:45 
GeneralRe: Problem with Font.Escapement Pin
Roger Allen13-Jun-03 0:28
Roger Allen13-Jun-03 0:28 
GeneralRe: Problem with Font.Escapement Pin
Nuehli13-Jun-03 3:12
Nuehli13-Jun-03 3:12 
QuestionHow to get the text that is on the dialog Pin
JensB12-Jun-03 21:17
JensB12-Jun-03 21:17 
AnswerRe: How to get the text that is on the dialog Pin
Anonymous12-Jun-03 21:46
Anonymous12-Jun-03 21:46 
GeneralRe: How to get the text that is on the dialog Pin
JensB12-Jun-03 21:50
JensB12-Jun-03 21:50 
GeneralRe: How to get the text that is on the dialog Pin
Rage12-Jun-03 23:41
professionalRage12-Jun-03 23:41 
GeneralRe: How to get the text that is on the dialog Pin
JensB13-Jun-03 0:06
JensB13-Jun-03 0:06 
AnswerRe: How to get the text that is on the dialog Pin
Neville Franks13-Jun-03 0:10
Neville Franks13-Jun-03 0:10 
GeneralReal time charting. Help ! Pin
Cedric Moonen12-Jun-03 20:24
Cedric Moonen12-Jun-03 20:24 

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.