Click here to Skip to main content
15,888,401 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: OnChange / SetModifiedFlag(TRUE) Pin
FarPointer7-Jun-06 7:11
FarPointer7-Jun-06 7:11 
AnswerRe: OnChange / SetModifiedFlag(TRUE) Pin
PJ Arends7-Jun-06 7:15
professionalPJ Arends7-Jun-06 7:15 
QuestionProblem with tree control and checkboxes Pin
Tnarol7-Jun-06 4:59
Tnarol7-Jun-06 4:59 
AnswerRe: Problem with tree control and checkboxes Pin
FarPointer7-Jun-06 5:25
FarPointer7-Jun-06 5:25 
QuestionDatabase operation in VC++ Pin
maharaja pandian7-Jun-06 4:55
maharaja pandian7-Jun-06 4:55 
QuestionRe: Database operation in VC++ Pin
David Crow7-Jun-06 7:03
David Crow7-Jun-06 7:03 
AnswerRe: Database operation in VC++ Pin
PJ Arends7-Jun-06 7:34
professionalPJ Arends7-Jun-06 7:34 
AnswerRe: Database operation in VC++ Pin
maharaja pandian7-Jun-06 18:35
maharaja pandian7-Jun-06 18:35 
in the Dll file when i try to open DB using the below function it work but
when i try to open the recordset open i.e.,rsOpen() , it open a DataSource dialog screen will opened ,instead of executing a sql query
//////////////////////////////////////////////////////////////////////////
bool CDaoDB::dbOpen(CString strFilePathName)
{
try
{
db = new CDaoDatabase(NULL);
db->Open(strFilePathName);
return true;
}
catch(CDaoException* error)
{
delete db;
db = NULL;

LPTSTR errors = "";
error->GetErrorMessage(errors,100,NULL);
AfxMessageBox(errors);
return false;
}
}
bool CDaoRS::rsOpen(CString sql,CDaoDatabase* db)
{
CDaoTableDef *df;

try
{
if(db)
{
rs = new CDaoRecordset(db);
rs->Open(dbOpenDynaset,sql);
return true;
}

else
{
AfxMessageBox("There is no current database open.");
return false;
}
}
catch(CDaoException* error)
{
delete rs;
rs = NULL;

LPTSTR errors = "";
error->GetErrorMessage(errors,100,NULL);
AfxMessageBox(errors);
return false;
}
}

Try again and again,
At last you will say
I don't know the meaning for impossible.,.

QuestionRe: Database operation in VC++ Pin
David Crow8-Jun-06 2:53
David Crow8-Jun-06 2:53 
QuestionMDI: New document using wizard (Where are you Microsoft people) Pin
Tarek Jabri7-Jun-06 4:46
Tarek Jabri7-Jun-06 4:46 
AnswerRe: MDI: New document using wizard (Where are you Microsoft people) Pin
FarPointer7-Jun-06 5:36
FarPointer7-Jun-06 5:36 
GeneralRe: MDI: New document using wizard (Where are you Microsoft people) Pin
Tarek Jabri7-Jun-06 6:19
Tarek Jabri7-Jun-06 6:19 
GeneralRe: MDI: New document using wizard (Where are you Microsoft people) Pin
FarPointer7-Jun-06 6:43
FarPointer7-Jun-06 6:43 
QuestionHow to display graph in chart using Excel Pin
MikeRT7-Jun-06 4:46
MikeRT7-Jun-06 4:46 
QuestionI get a Windows error when I remove an else statement... Pin
Lord Kixdemp7-Jun-06 4:23
Lord Kixdemp7-Jun-06 4:23 
AnswerRe: I get a Windows error when I remove an else statement... Pin
Cedric Moonen7-Jun-06 4:34
Cedric Moonen7-Jun-06 4:34 
AnswerRe: I get a Windows error when I remove an else statement... Pin
Viorel.7-Jun-06 4:42
Viorel.7-Jun-06 4:42 
AnswerRe: I get a Windows error when I remove an else statement... Pin
Sarath C7-Jun-06 4:45
Sarath C7-Jun-06 4:45 
QuestionRe: I get a Windows error when I remove an else statement... Pin
David Crow7-Jun-06 4:45
David Crow7-Jun-06 4:45 
AnswerRe: I get a Windows error when I remove an else statement... Pin
Lord Kixdemp7-Jun-06 18:04
Lord Kixdemp7-Jun-06 18:04 
GeneralRe: I get a Windows error when I remove an else statement... Pin
David Crow8-Jun-06 2:42
David Crow8-Jun-06 2:42 
GeneralRe: I get a Windows error when I remove an else statement... Pin
Lord Kixdemp8-Jun-06 3:11
Lord Kixdemp8-Jun-06 3:11 
GeneralRe: I get a Windows error when I remove an else statement... Pin
David Crow8-Jun-06 3:20
David Crow8-Jun-06 3:20 
QuestionSocket programming error MFC Pin
Aqueel7-Jun-06 4:14
Aqueel7-Jun-06 4:14 
QuestionRe: Socket programming error MFC Pin
David Crow7-Jun-06 4:20
David Crow7-Jun-06 4:20 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.