diff --git a/twain/twain/huagaods.cpp b/twain/twain/huagaods.cpp index b5c1700..9fd8279 100644 --- a/twain/twain/huagaods.cpp +++ b/twain/twain/huagaods.cpp @@ -997,23 +997,22 @@ Twpp::Result huagao_ds::extImageInfoGet(const Identity& origin, ExtImageInfo& da if (id == InfoId::BarCodeCount) { info.allocSimple(Type::UInt32); - *info.items()[0].data() = 2; + *info.items()[0].data() = 0; + } + else if (id == InfoId::BarCodeType) + { + info.allocSimple(Type::UInt32); + *info.items()[0].data() = BarCodeType::ThreeOfNine; } - //else if (id == InfoId::BarCodeType) - //{ - // info.allocSimple(Type::UInt32); - // *info.items()[0].data() = BarCodeType::ThreeOfNine; - //} else if(id == InfoId::BarCodeTextLength) { info.allocSimple(Type::UInt32); - *info.items()[0].data() = 16; + *info.items()[0].data() = 0; } else if (id == InfoId::BarCodeText) { - info.allocSimple(Type::Str255, 2); - info.items()[0].data()->setData("6922868285266"); - info.items()[1].data()->setData("6971513684121"); + //info.allocSimple(Type::Str255, 1); + //info.items()[0].data()->setData(std::to_string(6922868285266 + i).c_str()); } else info.setReturnCode(ReturnCode::InfoNotSupported);