hello, im getting a lot of errors...
Testing.cpp
#include <e32base.h>
#include <e32cons.h>
#include "CTestObject.cpp"
LOCAL_D CConsoleBase* gConsole;
// main function
LOCAL_C void MainL()
{
_LIT(KHelloWorldString, "Hello World\n"😉;
gConsole->Printf(KHelloWorldString);
CtestObject *test = CtestObject::NewL();
}
// Console Harness
LOCAL_C void ConsoleMainL()
{
_LIT(KConsoleTitle,"Hello World!"😉;
gConsole = Console::NewL(KConsoleTitle, TSize(KConsFullScreen,
KConsFullScreen));
MainL();
}// EPOC's main entry point
GLDEF_C TInt E32Main()
{
ConsoleMainL();
User::After(5000000);
return 0;
}
CTestObject.cpp
class CtestObject
{
public:
static CtestObject* NewL(){
CtestObject* self = CtestObject::NewLC();
CleanupStack::Pop(self);
return (self);
}
static CtestObject* NewLC(){
CtestObject* self = new (ELeave) CtestObject();
CleanupStack::PushL(self);
return (self);
}
CtestObject();
private:
void ConstructL();
};
i get the following errors:
Creation Time Description Resource Path Location Type
1249292817408 error: `CleanupStack' has not been declared CTestObject.cpp testing/src line 7 C/C++ Problem
1249292817488 error: `CleanupStack' has not been declared CTestObject.cpp testing/src line 12 C/C++ Problem
1249292817468 error: `ELeave' undeclared (first use this function) CTestObject.cpp testing/src line 11 C/C++ Problem
1249292817428 error: `Pop' undeclared (first use this function) CTestObject.cpp testing/src line 7 C/C++ Problem
1249292817508 error: `PushL' undeclared (first use this function) CTestObject.cpp testing/src line 12 C/C++ Problem
1249292817448 error: (Each undeclared identifier is reported only once for each function it appears in.) CTestObject.cpp testing/src line 7 C/C++ Problem
what is wrong? i thought i followed the examples closely...