Recent

Author Topic: jwabcrypt unit is missing  (Read 3217 times)

fpc_2024

  • Newbie
  • Posts: 2
« Last Edit: November 28, 2023, 05:36:19 pm by fpc_2024 »

PascalDragon

  • Hero Member
  • *****
  • Posts: 5759
  • Compiler Developer
Re: jwabcrypt unit is missing
« Reply #1 on: November 28, 2023, 09:21:00 pm »
just wondering why the following unit(https://github.com/magicmonty/delphi-code-coverage/blob/master/3rdParty/JWAPI/jwapi2.2a/Win32API/JwaBCrypt.pas) is missing from lazarus winunits-jedi https://gitlab.com/freepascal.org/fpc/source/-/tree/main/packages/winunits-jedi/src?ref_type=heads.

The Jedi units weren't really extended after their initial inclusion in 2008 (the unit you mentioned has been added in 2011).

any alternatives?

You could probably simply use the unit from the Jedi repository and add a {$mode delphi} before the uses clause. I have not tested it however.

Thaddy

  • Hero Member
  • *****
  • Posts: 16194
  • Censorship about opinions does not belong here.
Re: jwabcrypt unit is missing
« Reply #2 on: November 29, 2023, 09:09:53 am »
Note that since the Jedi units are not cross platform, do you maybe want to use it on other platforms than Windows? In that case Jedi units are always excluded because they make no sense on anything other than Windows.
« Last Edit: November 29, 2023, 09:11:56 am by Thaddy »
If I smell bad code it usually is bad code and that includes my own code.

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11944
  • FPC developer.
Re: jwabcrypt unit is missing
« Reply #3 on: November 29, 2023, 10:52:37 am »
Thaddy: we are in a windows subforum here.

Thaddy

  • Hero Member
  • *****
  • Posts: 16194
  • Censorship about opinions does not belong here.
Re: jwabcrypt unit is missing
« Reply #4 on: November 29, 2023, 11:01:41 am »
Yes, I noticed. My remark was "just in case".
If I smell bad code it usually is bad code and that includes my own code.

fpc_2024

  • Newbie
  • Posts: 2
Re: jwabcrypt unit is missing
« Reply #5 on: November 29, 2023, 03:08:24 pm »
solved by using JEDI units and with it's include folders

 

TinyPortal © 2005-2018