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. CRecordset ? DoFieldExchange ??

CRecordset ? DoFieldExchange ??

Scheduled Pinned Locked Moved C / C++ / MFC
debugginghelpquestionannouncement
7 Posts 2 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.
  • Z Offline
    Z Offline
    zinc_z
    wrote on last edited by
    #1

    Hi , I am having problem when I assign a string more than 255 characters to a CRecordset memeber like (m_Result is a CString) Res->m_Result=str1; (str1 is more than 255 characters) UpDate(); and I get a exception "Debug Assertion Failed , DBFRX line 287 ". Is there any other way of setting string more than 255 characters using CRecordset->Update() ??? Thanks, ZINC

    D 1 Reply Last reply
    0
    • Z zinc_z

      Hi , I am having problem when I assign a string more than 255 characters to a CRecordset memeber like (m_Result is a CString) Res->m_Result=str1; (str1 is more than 255 characters) UpDate(); and I get a exception "Debug Assertion Failed , DBFRX line 287 ". Is there any other way of setting string more than 255 characters using CRecordset->Update() ??? Thanks, ZINC

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

      What type/size of field in your table is m_Result tied to?


      "The greatest good you can do for another is not just to share your riches but to reveal to him his own." - Benjamin Disraeli

      Z 2 Replies Last reply
      0
      • D David Crow

        What type/size of field in your table is m_Result tied to?


        "The greatest good you can do for another is not just to share your riches but to reveal to him his own." - Benjamin Disraeli

        Z Offline
        Z Offline
        zinc_z
        wrote on last edited by
        #3

        its a ACCESS table and field is of ntext type

        D 1 Reply Last reply
        0
        • Z zinc_z

          its a ACCESS table and field is of ntext type

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

          zinc_z wrote:

          ...and field is of ntext type

          Not sure how 'ntext' compares to 'text' but how large is the field?


          "The greatest good you can do for another is not just to share your riches but to reveal to him his own." - Benjamin Disraeli

          1 Reply Last reply
          0
          • D David Crow

            What type/size of field in your table is m_Result tied to?


            "The greatest good you can do for another is not just to share your riches but to reveal to him his own." - Benjamin Disraeli

            Z Offline
            Z Offline
            zinc_z
            wrote on last edited by
            #5

            its of CString type

            D 1 Reply Last reply
            0
            • Z zinc_z

              its of CString type

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

              You have already indicated that m_Result is a CString object. My question was about the field in the database.


              "The greatest good you can do for another is not just to share your riches but to reveal to him his own." - Benjamin Disraeli

              Z 1 Reply Last reply
              0
              • D David Crow

                You have already indicated that m_Result is a CString object. My question was about the field in the database.


                "The greatest good you can do for another is not just to share your riches but to reveal to him his own." - Benjamin Disraeli

                Z Offline
                Z Offline
                zinc_z
                wrote on last edited by
                #7

                m_Result is bound to of ntext(length 16) type field in SQL Server . I have tried to change the field to varchar (length 700) but no diff. I still got the same exception. any other sugestions ? Regards, ZINC

                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