Hi,
I tried upgrading to Aspose.Cells for C++ 20.7 from version 19.11. I use Aspose.Cells
in conjunction with Qt 5 and load the license as follows:
/***********************************************************************/
static void activateAsposeLicense()
{
static intrusive_ptr< License> license;if(!license) { // Open the embeded license file QFile asposeLicFile(":/internal/Aspose.Cells.lic"); asposeLicFile.open(QIODevice::ReadOnly); const QByteArray licData = asposeLicFile.readAll(); intrusive_ptr<Aspose::Cells::Systems::BString> byteBuffer(new Aspose::Cells::Systems::BString(reinterpret_cast<Byte*>(licData.data()), licData.size())); Aspose::Cells::Systems::IO::MemoryStreamPtr buffer(new Aspose::Cells::Systems::IO::MemoryStream(byteBuffer)); license = new Aspose::Cells::License; license->SetLicense(buffer); } }
This worked fine with 19.11 but Aspose won’t accept my license in 20.7 although
the license clearly states that it’s valid into 2021.