C++ MFC

Moderators: Lundin
Number of threads: 3337
Number of posts: 9005

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Write to the database using MFC dialog based and VC++ 2008 Posted by SharjeelIqbal on 6 Mar 2012 at 2:28 AM
Hi
i am trying to write to the database(.mdb). i can read the database but i could not do the writing to it following is the code that i am using for writing
m_pSet->AddNew();
while ( ! m_pSet->IsEOF() )
{
m_pSet->m_Category = "mahum";
//m_pSet->lk = 1001;
//m_pSet->Ark = 20;
m_pSet->Update();
}
it gives the following error at first line
"Unhandled exception at 0x00e8356d in wDB.exe: 0xC0000005: Access violation reading location 0x00000000."
can anybody help me out ?



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.