using CODBCRecordset class instead of Crecordset class

This is a discussion on using CODBCRecordset class instead of Crecordset class within the C++ Programming forums, part of the General Programming Boards category; Hi I have an mfc apllication with database support. im using odbc data source and Crecordview as base class. Mfc ...

  1. #1
    Registered User
    Join Date
    Dec 2012
    Posts
    7

    using CODBCRecordset class instead of Crecordset class

    Hi
    I have an mfc apllication with database support. im using odbc data source and Crecordview as base class. Mfc has generated Crecordset class for me but i cant use it to write data into the database in the mfc way. i want to use the COdbcrecordset class. but i dont know how to derive it and bring it into my project.
    please, i need guidelines.
    thanks.

  2. #2
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,046
    Did you google it? CODBCRecordset class - CodeProject

    Otherwise, if you want more details, you're going to have to ask a more specific question. Maybe give some code examples, show what you've tried. What exactly are you trying to do?
    dwk

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell


    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ: cpwiki.sf.net

    My website: http://dwks.theprogrammingsite.com/
    Projects: codeform, xuni, atlantis, nort, etc.

  3. #3
    Registered User
    Join Date
    Dec 2012
    Posts
    7
    thanks dwks
    i have searchedit on google and i found some answers about CODBCRecordSet in codeproject.com. the issue i am having is including the CODBCRecordSet files into my project. i dont know if the file is in mfc and then i would try to acces it somehow or i have to probably download it. my questions is how do i include the files into my project.
    thanks

  4. #4
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,046
    You mean, how do you include the code into your project? I guess you would figure out which development environment you're using (Microsoft Visual Studio?) and search for how to add files to the project...

    The source code seems to be in a .zip that I can't download, but it will probably either supply source files which compile into their own library, and then you'd add the library to your project's link options (and probably the directory with header files to your project's include path). Or you may be able to just copy the source files into the same directory as the rest of your code and add them to the project from there.
    dwk

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell


    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ: cpwiki.sf.net

    My website: http://dwks.theprogrammingsite.com/
    Projects: codeform, xuni, atlantis, nort, etc.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 5
    Last Post: 04-17-2008, 02:31 AM
  2. Replies: 7
    Last Post: 05-26-2005, 10:48 AM
  3. Replies: 2
    Last Post: 04-06-2005, 07:25 AM
  4. Template <class T1, class T2, class T3> error LNK2019
    By JonAntoine in forum C++ Programming
    Replies: 9
    Last Post: 10-11-2004, 12:25 PM
  5. Replies: 1
    Last Post: 12-11-2002, 09:31 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21