Giter Club home page Giter Club logo

jplib's Introduction

JPLib

visitors GitHub Repo size

A library of general-purpose pascal units needed to compile my projects published on GitHub.

Supported Delphi versions: 2009, 2010, XE, XE2, XE3, XE4, XE5, XE6, XE7, XE8, 10.0 Seattle, 10.1 Berlin, 10.2 Tokyo, 10.3 Rio, 10.4 Sydney, 11.0 Alexandria.
FPC (Free Pascal Compiler): required version 3.0.4 3.2.0 or newer.

Installation

Installation packages for all supported IDEs can be found in the packages folder. The packages are "run-time" type and do not contain any components.

The JPLib package must be installed if you want to install the JPPack components package. If you do not want to install JPPack, you can use JPLib without any installation.

Hash

Some units in the Hash folder uses HashLib4Pascal library from https://github.com/Xor-el/HashLib4Pascal and Wolfgang Ehrhardt's hashing units from https://github.com/jackdp/www.wolfgang-ehrhardt.de/tree/master/src/crc-hash/crc_hash

License

The license for my work: public domain. You can do with my code whatever you want without any limitations.

But in some units I use code from other open source projects, so you should look at the PAS source files and license of the authors of these projects for more information.

Important changes

A list of changes that may break existing code.

2022.08.06
JPL.Conversion.pas

function TryGetMilliseconds(const NumStr: string; out MilliSeconds: Int64;
  DefaultTimeUnit: TTimeUnit = tuMillisecond): Boolean;

The DefaultTimeUnit parameter has been added. It specifies the default time unit to be used if it is not given in NumStr. Now the default unit is a millisecond, before the change it was a second.

jplib's People

Contributors

jackdp avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

jplib's Issues

[dcc32 Error] JPL.Console.pas(553): E2003 Undeclared identifier: 'Reserved'

I got an error when i compiled JPLib package in Delphi 10.4 (Version 27.0.40680.4203):

[dcc32 Error] JPL.Console.pas(553): E2003 Undeclared identifier: 'Reserved'

function ConWaitForKeyPressed(VirtualKeyCode: WORD = VK_ANY; Milliseconds: DWORD = INFINITE; SleepInterval: DWORD = 25): Boolean;
var
ir: TInputRecord;
dwEvents: DWORD;
tmEnd: DWORD;
dwKey: WORD;
begin
Result := False;
tmEnd := 0;

ConUpdateStandardHandles;
if ConStdInput = INVALID_HANDLE_VALUE then Exit;
if (Milliseconds <> INFINITE) and (Milliseconds > 0) then tmEnd := GetTickCount + Milliseconds;

// FPC: initialize
ir.Reserved := 0; //<--- this line report error.
dwEvents := 0;

Problem installing JPLib.dpk

I choose JPLib.dpk from Delphi_10.3_Rio directory and while openning it in Delphi I get an error message: Unable to load projectJPLib.dproj. Error reading JPLib.dproj. Fatal error - 1072896763 The name contain invalid character Line 16, column 76.
Is tehere a way to fix this ?

breakes lazarus compilation

FPC 3.2.x, Lax 2.0.x or 2.2x on Windows using fpcupdeluxe, both x96 and x64

Reason is Sparta.Generics that conflicts with FPC 3.2. RTL, which already has generics.

This dependency better be removed from jplib.lpk

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.