Click here to Skip to main content
15,912,400 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: OnTimer() Not Being Called after timer is set up (VS C++ 6.0) Pin
bfeero7-Jun-06 9:28
bfeero7-Jun-06 9:28 
QuestionDocking window behaviour ? [modified] Pin
Maximilien7-Jun-06 8:41
Maximilien7-Jun-06 8:41 
Questionsome code to start to write a program to display waveforms in multiple channels Pin
mrby1237-Jun-06 7:56
mrby1237-Jun-06 7:56 
QuestionOnChange / SetModifiedFlag(TRUE) Pin
DanYELL7-Jun-06 6:58
DanYELL7-Jun-06 6:58 
QuestionRe: OnChange / SetModifiedFlag(TRUE) Pin
David Crow7-Jun-06 7:07
David Crow7-Jun-06 7:07 
AnswerRe: OnChange / SetModifiedFlag(TRUE) Pin
DanYELL7-Jun-06 9:27
DanYELL7-Jun-06 9:27 
GeneralRe: OnChange / SetModifiedFlag(TRUE) Pin
David Crow7-Jun-06 10:20
David Crow7-Jun-06 10:20 
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 

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.