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. ATL / WTL / STL
  4. ATL for Ole Db

ATL for Ole Db

Scheduled Pinned Locked Moved ATL / WTL / STL
c++databasecomtutorialquestion
3 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.
  • L Offline
    L Offline
    lisoft
    wrote on last edited by
    #1

    Can any one tell me how to check EOF/BOF status in a rowset?

    Lisoft

    G 1 Reply Last reply
    0
    • L lisoft

      Can any one tell me how to check EOF/BOF status in a rowset?

      Lisoft

      G Offline
      G Offline
      gauravjain
      wrote on last edited by
      #2

      Hey i had the same problem. Well there is no EOF or BOF. Check for S_OK as till S_OK is returned EOF is not reached. i solved it using that. Gaurav Jain K.K. Wagh Institue of Engineering Education and Research, Nashik, Maharashtra, India. gauravjain911@yahoo.com

      L 1 Reply Last reply
      0
      • G gauravjain

        Hey i had the same problem. Well there is no EOF or BOF. Check for S_OK as till S_OK is returned EOF is not reached. i solved it using that. Gaurav Jain K.K. Wagh Institue of Engineering Education and Research, Nashik, Maharashtra, India. gauravjain911@yahoo.com

        L Offline
        L Offline
        lisoft
        wrote on last edited by
        #3

        I also found the OLE DB consumer templates does not have the EOF/BOF status like the ODBC(MFC) class which I used to access the database before. When CRowset class was first initialized by CCommand::Open method, the 'cursor' does not point to the first record like the ODBC(MFC) class. The only way to check if there is anything returned from the database is to call CRowset::MoveNext() method and check the return value to determine EOF status. Anyway, thanks for your help.

        Lisoft

        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