问题
I want to get the imei number In bb 10 cascades.In that path, I need to to add
using namespace bb::data;
#include <bb/device/HardwareInfo>
I have Also Included
LIBS += -lbbpim
LIBS += -lbbsystem
LIBS += -lbbdevice
LIBS += -lbbdata
files to my project.pro file !!! but I am getting Error message like...
- expected namespace-name before ';' token
- 'data' is not a namespace-name
I want to know why i am getting this error ,how to resolve that Error and I would be hapy if post any code snippet how to get device Unique Id or IEMI Number in BB 10 Cascades !!!
回答1:
Try remove your
using namespace bb::data;
and then try
QString deviceImei = bb::device::HardwareInfo().imei();
来源:https://stackoverflow.com/questions/18693155/imei-number-in-bb-10-cascades