Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • in reply to: MFC:GetRecordCount() #3182
    sameena
    Participant

    Hi Yes I thought it would be a great function like Clippers various functions but it does not work.

    From http://www.codeproject.com/ Caution The record count is maintained as a “high water mark” the highest-numbered record yet seen as the user moves through the records. The total number of records is only known after the user has moved beyond the last record. For performance reasons, the count is not updated when you call MoveLast. To count the records yourself, call MoveNext repeatedly until IsEOF returns nonzero. Adding a record via CRecordset:AddNew and Update increases the count; deleting a record via CRecordset::Delete decreases the count.”You open the databae set a filter and cannot query the database using GetRecordCount(). You have to move beyond the last record for some reason.

    Thanks for your help
    MegaC

    • This reply was modified 9 years, 1 month ago by M. Saqib.
    • This reply was modified 1 year, 5 months ago by M. Saqib.

    in reply to: this keyword #3143
    sameena
    Participant

    Hi

    You should find the information you need here:-
    http://www.codeguru.com/cpp/tic/tic_c.shtml

    The this pointer indentifies the object instance that called a function whereas VPTR seems to be similar in construction but applies to virtual functions and has to do with binding…

    Good luck on that one :)
    MegaC

    in reply to: MFC: changing int to string #3178
    sameena
    Participant

    Hi Gentlemen
    Thanks for the help. I had tried the itao function but did not provide correct parameters. However this is the solution I came up with:-

    Apparrently you can do this and other wonderful things with the CString class :)

    Thanks again
    MegaC

Viewing 3 posts - 1 through 3 (of 3 total)