Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Enumerations
#1
I am using Patagames.PDF.Net with Crosstalk. One of the enumerations is caussing issues wth Delphi.

  PdfUserAccessPermission = (
    NoPermissions = -3904 {4294963392}
    , Reserved = -3904  {4294963392}
    , PermitAll = -4  {4294967292}
    , PermitPrint = 4
    , PermitModifyDocument = 8
    , PermitExtractContent = 16
    , PermitAnnotations = 32
    , PermitReserved = 192
    , PermitFormsFill = 256
    , PermitAccessibilityExtractContent = 512
    , PermitAssembleDocument = 1024
    , PermitFullQualityPrint = 2048
    , PermitReserved2 = -4096 {4294963200}
  );


The CrossTalk generated numbers in {} cause compiler errors. These numbers are correct per Patagames documentation.

It seems Delphi accepts numbers in the range pf  -2,147,483,647 to 2,147,483,647. The negative numbers shown above work.

I think CrossTalk needs to handle this somehow.

However, make it your lowest priority. I don't use this particular enumeration. But it is a pain having to fix it every time Crosstalk generates the file.
Reply
#2
Hi there,

I'll see if I can create a test case that reproduces this issue.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)