Urgent help needed
-
Hi, I am trying to read thru a .txt file using ODBC.but when i create a CRecordset derived class using Class Wizard specifying the DSN and filename in usual way,Only 1 field value is reflected in my CRecordset derived class , mean In the text file there are 6 columns namely A,B,C,D,E,F.But I am getting only 1 member variable m_A in my specialized recordset class,all other fields are not mapped. Please help.
-
Hi, I am trying to read thru a .txt file using ODBC.but when i create a CRecordset derived class using Class Wizard specifying the DSN and filename in usual way,Only 1 field value is reflected in my CRecordset derived class , mean In the text file there are 6 columns namely A,B,C,D,E,F.But I am getting only 1 member variable m_A in my specialized recordset class,all other fields are not mapped. Please help.
What does your .TXT file look like? In your CRecordset-derived class' header file, there should be a Field/Param Data section with a member variable for each "column" in your .TXT file. In the DoFieldExchange() method of this class, there should be a RFX_xxx mapping statement for each of these member variables.
-
What does your .TXT file look like? In your CRecordset-derived class' header file, there should be a Field/Param Data section with a member variable for each "column" in your .TXT file. In the DoFieldExchange() method of this class, there should be a RFX_xxx mapping statement for each of these member variables.
Did you map/define the 6 fields in your ODBC DSN setup? You need to do this to access the fields in a text file correctly (including field delimiter, Field name, logical data type, etc...).