vc 2005 CDatabase compile error
-
The project can recognise CString, but when I went to use CDatabase I got the error CDataBase db; do stuff with db.... 'CDatabase' : undeclared identifier. Do I need to include something? I thought since the project has MFC support it would automatically recognise CDataBase. thanks, sb
-
The project can recognise CString, but when I went to use CDatabase I got the error CDataBase db; do stuff with db.... 'CDatabase' : undeclared identifier. Do I need to include something? I thought since the project has MFC support it would automatically recognise CDataBase. thanks, sb
I'm not sure why you think the compiler would automatically recognize any unknown types... You probably need to include afxdb.h Mark
Mark Salsbery Microsoft MVP - Visual C++ :java:
-
I'm not sure why you think the compiler would automatically recognize any unknown types... You probably need to include afxdb.h Mark
Mark Salsbery Microsoft MVP - Visual C++ :java:
-
The project can recognise CString, but when I went to use CDatabase I got the error CDataBase db; do stuff with db.... 'CDatabase' : undeclared identifier. Do I need to include something? I thought since the project has MFC support it would automatically recognise CDataBase. thanks, sb
ns wrote:
Do I need to include something?
Yes, read here (near the bottom) for what.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne