My understanding is that this:
- std::string info;
const char* scope =
"<haspscope>"
" <product id=\"102\"/>"
"</haspscope>");
const char* format =
"<?xml version=\"1.0\" encoding=\"UTF-8\" ?>"
"<haspformat root=\"hasp_info\">"
" <feature>"
" <element name=\"license\" />"
" </feature>"
"</haspformat>"
"";
haspStatus Status = Chasp::getInfo(scope, format, vendorCode, info);
should behave the same as:
- std::string info;
const char* format =
"<?xml version=\"1.0\" encoding=\"UTF-8\" ?>"
"<haspformat root=\"hasp_info\">"
" <feature>"
" <element name=\"license\" />"
" </feature>"
"</haspformat>"
"";
ChaspFeature feature = ChaspFeature::fromFeature(102);
Chasp hasp(feature);
haspStatus Status = hasp.getSessionInfo(format, info);
But Status is HASP_INV_HND for hasp.getSessionInfo() while getInfo() does what I expect it to. Is there any reason for this? I've tried using hasp.login(vendorEMSCode) before using hasp.getSessionInfo(), and it doesn't make a difference.
We are using hasp_api_cpp.h v 1.16 and hasp_api.h Copyright 2013
Thanks.