October 11th, 2011, 05:19 PM
I think its problem with driver. Because i did all with Access and PostgreSQL .SDI and Dialog . Its work .Only with foxpro 9 not .
October 11th, 2011, 05:13 PM
IF it is not clear . program crash in Update () function. Are you think i am not check where it is crush?
September 30th, 2011, 04:24 AM
it a full text
DBMS: Visual FoxPro
Version: 03.00.0000
ODBC Driver Manager Version: 03.52.0000
First-chance exception at 0x7c809f52 in step_111.exe: 0xC0000005: Access violation reading location...
September 30th, 2011, 04:04 AM
1)This database that i did in foxpro9 . employees.dbf
2)I am open it by
CString Cstep_111Set::GetDefaultConnect()
{
return _T(/*"DSN=TestDB;DBQ=H:\\המסמכים שלי\\Visual FoxPro...
September 29th, 2011, 07:54 PM
Why if i try add new note function m_pSet->Update(); newer work all time i get message
"Cannot add a new record!"
void Cstep_111View::On_ADD_BUTTON(void)
{
/*CWnd *myEdit =GetDlgItem...
September 28th, 2011, 06:51 PM
Hi
I unchecked bind all fields but it dont helped. I get also m_nFields = 0
so i do it manually i changed all code like
IMPLEMENT_DYNAMIC(Cstep_111Set, CRecordset)
...
September 28th, 2011, 03:52 AM
yes
in my code i have
#include "stdafx.h"
#include "step111_new.h"
#include "step111_newSet.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#endif
September 28th, 2011, 03:44 AM
I am trying build application that can retrieve data from my database . change data by use of my application , add data .
September 28th, 2011, 02:28 AM
yes its a CRecordset
IMPLEMENT_DYNAMIC(Cstep111_newSet, CRecordset)
Cstep111_newSet::Cstep111_newSet(CDatabase* pdb)
: CRecordset(pdb)
{
m_nFields = 0;
m_nDefaultType = snapshot;
}
September 27th, 2011, 07:59 PM
Why after creating project MFC with database support and adding database that i created with foxpro 9 all time property m_nFields = 0;
After that i get Assertion failure if i stat debugging? ...