Forums | developer.brewmp.com Forums | developer.brewmp.com

Developer

Forums

I found a macro "AEEINTERFACE_CPLUSPLUS" in AEEIBitmapDisplay.h file.

If this is defined, a C++ class IBitmapDisplay will be defined for IBitmapDisplay.

However, if I define this macro in the project, there will be compilation error happened (compiled by VS2005)

1>c:\program files\qualcomm\brew mp sdk\platforms\1.0.2.320\platform\ui\inc\AEEIBitmap.h(61) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files\qualcomm\brew mp sdk\platforms\1.0.2.320\platform\ui\inc\AEEIBitmap.h(61) : warning C4183: 'INHERIT_IQI': missing return type; assumed to be a member function returning 'int'

The cause is that INHERIT_IQI is not defined when AEEINTERFACE_CPLUSPLUS is enabled.

What should I do if I want to use C++ class interface for IBitmap, IDisplay?

Problems.
If AEEINTERFACE_CPLUSPLUS in project level . ==> Project Build Errors.
AEEModGen.c compile (AEEINTERFACE_CPLUSPLUS defined) ==> Build Errors.
Test : VS2005 SP 1
// MyTestCodeAEEIBitmapDisplay.cpp
// ...
#include "AEE.h"
#define AEEINTERFACE_CPLUSPLUS
#include "AEEIBitmapDisplay.h"

Problems.
If AEEINTERFACE_CPLUSPLUS in project level . ==> Project Build Errors.
AEEModGen.c compile (AEEINTERFACE_CPLUSPLUS defined) ==> Build Errors.
Test : VS2005 SP 1
// MyTestCodeAEEIBitmapDisplay.cpp
// ...
#include "AEE.h"
#define AEEINTERFACE_CPLUSPLUS
#include "AEEIBitmapDisplay.h"