iphone - ZXingWidget header search path -
have imported zxingwidget project , seems working expected (after quite bit of trail , error). can activated, display white framed view finder, scan qrcode , return result.
what wish add have zxingwidget turn white view finder frame red when scan result not match predefined strings.
my strategy update global flag in own project string matching result , have zxingwidget read it.
my problem is, zxingwidget cannot find header file (where global flag variable declared) despite having set header search path.
my feeling is, either because search path wrong or strategy flawed. please advise.
well, kinda sounds hack, if you're not concerned cleanliness, extern in widget rather bothering include header.
at point of defintion:
bool my_red_flag;
in hacked widget:
extern bool my_red_flag.
the "proper" way add api widget, might not worth effort you. (polling variable somehow seem required: widget draws frame directly , won't redraw unless given reason.)
Comments
Post a Comment