Git Product home page Git Product logo

delphitwain's People

Contributors

maxm74 avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Forkers

atkins126

delphitwain's Issues

Compiler errors

Hello,

Delphi 11 Version 28.0.48361.3236

please note these errors:

[dcc64 Error] DelphiTwain.pas(164): E2003 Undeclared identifier: 'TPersistent'
[dcc64 Error] DelphiTwain.pas(164): E2021 Class type required
[dcc64 Warning] DelphiTwain.pas(196): W1055 PUBLISHED caused RTTI ($M+) to be added to type 'TTwainIdentity'

Unit Classes should be added to Uses.

uses
  SysUtils, Windows, Messages,
  Classes,
  Twain, DelphiTwainUtils;

Please also note these warnings:

[dcc64 Warning] i18nCore.pas(3214): W1002 Symbol 'Create' is specific to a platform
[dcc64 Warning] DelphiTwainUtils.pas(309): W1035 Return value of function 'TPointerList.GetItem' might be undefined
[dcc64 Warning] DelphiTwain.pas(193): W1010 Method 'Assign' hides virtual method of base type 'TPersistent'
[dcc64 Warning] DelphiTwain.pas(2980): W1035 Return value of function 'Obj' might be undefined

Published properties should be converted to Public if there is no design-time components to be installed:

  public
    {Object being created}
    constructor Create;
    {Copy properties from another TTwainIdentity}
    procedure Assign(Source: TObject);

    property ID: TW_UINT32 read GetId;
  published
    {Application major version}
    property MajorVersion: TW_UINT16 read GetMajorVersion write SetMajorVersion;
    {Application minor version}
    property MinorVersion: TW_UINT16 read GetMinorVersion write SetMinorVersion;
    {Language}
    property Language: TTwainLanguage read GetLanguage write SetLanguage;
    {Country code}
    property CountryCode: Word read GetCountryCode write SetCountryCode;

Best regards.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.