|Hi All, Good Morning.
I am facing compilation errors but I have declared everything properly. Something is missing Please help me. I declared a declared class having 3-4 member functions n variable in header file and defined its functions in source file. Everything was working fine. But Now if I add some #define statements in header file and use those in source file , It is giving error undeclared variable. also if I put the mouse on #define statement it showing the variable with _CURSOR_ appended with.
#define TRADE_TAG "trd"
if I put the mouse on TRADE_TAG then it will show like TRADE_TAG_CURSOR_ "trd".. dont know why.. also if I right click on TRADE_TAG n then look for declaration then msg box appears variable TRADE_TAG not declared ... can u guide me here.
If I add a member variable or member function to the class declaration n then define in source file , it again gives compilation errors. dont identify class member variables n function. strange thing is that in one function it is recongnising member variables n in the another it is not.. both functions are member of the class. putting mouse on member function defination shows it as member. but on compilation it is giving error then function is not a member of class see the declartion.I m pasting code here. Please help
Header file Kccdatabase.h
class CKccDatabase : public CDatabase
BOOL ConnectKccDatabase(CKccDatabase &;
void InsertTrade(CKccDatabase *);
void ConvertTrdToXML(long RowIndx , bool IsRegularTrade = 1);
void ConvertTrdToKccFormat(long RowIndx , bool IsRegularTrade = 1);
void CKccDatabase::ConvertTrdToXML(long RowIndx , bool IsRegularTrade)
void CKccDatabase::ConvertTrdToKccFormat(long RowIndx, bool IsRegularTrade)
sTradeXML = "Hello";
sTradeKcc= " yes";
when I compile this source file cntl+f7 then it gives these errors in
KccDatabase.cpp(126) : error C2039: 'ConvertTrdToKccFormat' : is not a member of 'CKccDatabase'
1> f:\kats_clients_local\kats32\kats32\KccDatabase.h(4) : see declaration of 'CKccDatabase'
1>.\KccDatabase.cpp(151) : error C2065: 'sTradeKcc' : undeclared identifier
1>.\KccDatabase.cpp(152) : error C2065: 'sTradeXML' : undeclared identifier
please note that it is recongnising variable xTradeXML in upper ConvertTrdToXML but not in ConvertTrdToKccFormat ... also when I put cursor on the ConverTrdToKccFormat function defination then It shows this as member of CKccDatabase class ..
the only difference is that i have defind ConvertTrdToXML 4-5 days ago .. and otherone today.. :-9
Can anybody help