Copy link to clipboard
Copied
During debugging a 32 bit of an existing Acrobat plugin C++ application I received the error messages C2131 (expression did not evaluate to a constant) and E0028 (expression must have a constant value). After commenting out the #include <vector> I was able to compile the file without errors.
In order to get the possibility of reproducing these errors I extracted the Bates numbering example from the Acrobat SDK and opened the solution file with Microsoft Visual Studio 2019 (16.3.10), added the include directories of the SDK, added _XKEYCHECK_H to the preprocessor definitions and compiled this example on a Windows 10 computer. I am getting now also the errors E0028 and C2131 also with this example application from the SDK. The selected Windows SDK Version is 10.0 (latest installed version) and the selected platform toolset is Visual Studio 2019 (v142).
Did anyone face the same issue?
May be a problem with the version of Visual Studio.
Supported environments for Acrobat DC SDK:
Copy link to clipboard
Copied
What version of Adobe Acrobat?
Copy link to clipboard
Copied
Currently installed is Acrobat XI. But I got these errors with Acrobat XI SDK and Acrobat DC SDK as well. As long as I cannot compile and link the C++ code the version of Acrobat should not matter, I expect. At the moment I cannot even compile the BatesNumbering.cpp file.
Copy link to clipboard
Copied
May be a problem with the version of Visual Studio.
Supported environments for Acrobat DC SDK:
Copy link to clipboard
Copied
Thank you very much for providing this link. Sounds like going back to Visual Studio 2010 and Windows 8.1 would be the best idea.