Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Urgent help needed

Urgent help needed

Scheduled Pinned Locked Moved C / C++ / MFC
help
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    vcseeker
    wrote on last edited by
    #1

    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.

    D 1 Reply Last reply
    0
    • V vcseeker

      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.

      D Offline
      D Offline
      David Crow
      wrote on last edited by
      #2

      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.

      B 1 Reply Last reply
      0
      • D David Crow

        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.

        B Offline
        B Offline
        basementman
        wrote on last edited by
        #3

        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...).

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups