GCCE compiler errors for active scheduler/object .exe
| Mon, 2008-05-26 17:41 | |
|
Hi, I'm trying to compile an auto-answer-incoming-voice-call thread, using a CActive derived object, and a CActiveScheduler instance. My CActive derived class is autoAnswer . autoAnswer() and DoCancel() for autoAnswer.o file, and RunError(int) for autoAnswer.exe which does not compile. I probably do have multipe bugs but none should restrict compilation, as i AM declaring and defining those members, apart from RunError() which has a default CActive implementation if not declared. If I wrote foolish code, you can laugh. HEADER of autoAnswer: #ifndef AUTOANSWER_H_And here is the CPP: #include "autoAnswer.h"
|
|






Forum posts: 30
CTelephony::EVoiceLineStatusChange is of type TNotificationEvent while CTelephony::CancelAsync() expects TCancellationRequest
You have to define autoAnswer::autoAnswer() since you call it in new (ELeave) autoAnswer.
TCallStatusV1Pckg can not be constructed directly. Its constructor requires an argument of TCallStatusV1 type such as iLineStatusPckg(iLineStatus)
With these changes and libraries euser and etel3rdparty in mmp file your code does compile and link.
However you should never write code like this one. As I'm not an expert myself I can't advise further but please read some good books on C++ and Symbian and you will soon understand.