Why is it that I add in a piece of code in its own files sometimes I end up with HUNDREDS of errors throughout all the code. It ranges from connected code to completely un related code sections. For example I just put in some code for a database access and I got 332 errors. Some of it related to the database sections and look completly correct as in within the database.h file(referenced in stdAfx.h) I calland in the database.cpp file I tryCode:#import "c:\Program Files\Common Files\System\ADO\msado15.dll" \ rename("EOF", "EndOfFile") typedef ADODB::_RecordsetPtr RecPtr; typedef ADODB::_ConnectionPtr CnnPtr;
and the first three errors I get areCode:#include "stdAfx.h" ADODB::_RecordsetPtr rec1=NULL;
AT the same time I also get errors in the splash.cpp and splash.h files which were working perfectly prior to me adding the database.Code:c:\documents and settings\administrator\my documents\my projects\dosage\database.cpp(3) : error C2146: syntax error : missing ';' before identifier 'rec1' c:\documents and settings\administrator\my documents\my projects\dosage\database.cpp(3) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\documents and settings\administrator\my documents\my projects\dosage\database.cpp(3) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
What could be wrong? What would cause all these errors all over other wise correct code?



LinkBack URL
About LinkBacks


