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

C / C++ / MFC

 
GeneralRe: the title of the window Pin
sulaxan13-Jun-03 2:56
sulaxan13-Jun-03 2:56 
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 
Hi ,
I am trying to read some data from a tab delimited text file taking individual field values from text file and putting it into an access databse.I have 2 recordsets one that fetches data from Text file and the other is that inserts the values into the data base.The code after opening the recordset successfully is something like this.
if(rs.IsBOF())
return false;
rs.MoveFirst();//rs IS THE RECORDSET THAT FETCHES RECORDS FROM DATA FILES
while(!rs.IsEOF())
{
recset.AddNew();///recset IS THE RECORDSET THAT FETCHES RECORDS FROM DATAFILES
recset.m_A = rs.m_A;
recset.m_R = rs.m_R;
recset.m_Absolute = rs.m_Absolute;
recset.m_Relative = rs.m_Relative;
recset.m_Class = rs.m_Class;
// recset.m_Azimuth = rs.m_Azimuth;
// recset.m_Int = rs.m_Int;
//recset.m_Box =rs.m_Box;
recset.m_2002D = rs.m_2002D;
recset.m_2002H = rs.m_2002H;
recset.m_1993D = rs.m_1993D;
recset.m_1993H = rs.m_1993H;
recset.m_Growth = rs.m_TXT_Growth;
recset.m_Growth2 = rs.m_TXT_Growth2;
recset.m_Growth3 = rs.m_TXT_Growth3;
recset.m_Wt = rs.m_Wt;
//recset.m_Comment = recset.m_Comment;
if(!recset.Update( )){
AfxMessageBox("Record not added.");
return FALSE;
}
rs.MoveNext();
}
My problem is that some members like m_azimuth(type-CTime) and m_Int,m_Box(type-CString) are not being copied to access recordset and not being updated to Access and Update function is unsuccessful.all other members are numbers and they don't have any problem copying.One CString object m_class is being copied without any problem.
The commented code shown above is working well ,but if i uncomment these portions Update function fails,Can nebody tell me what may be the problem?
GeneralRe: Database Problem! Pin
Toni7812-Jun-03 23:20
Toni7812-Jun-03 23:20 
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 

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.