Recent

Author Topic: activex.pp missing functions question  (Read 2153 times)

440bx

  • Hero Member
  • *****
  • Posts: 6334
activex.pp missing functions question
« on: July 14, 2025, 02:46:54 pm »
activex.pp defines a number of variant functions such as:
Code: Pascal  [Select][+][-]
  1. function VarUI8FromUI2(uiIn:USHORT; pi64Out:PULONG64):HResult;stdcall;external oleaut32dll name 'VarUI8FromUI2';
  2. function VarUI8FromUI4(ulIn:ULONG; pi64Out:PULONG64):HResult;stdcall;external oleaut32dll name 'VarUI8FromUI4';
  3. function VarUI8FromDec(var pdecIn:TDecimal; pi64Out:PULONG64):HResult;stdcall;external oleaut32dll name 'VarUI8FromDec';
  4.  
Essentially, it seems to include the type conversion functions.  There are other functions that do operations on the variant types such as: VarAbs, VarAnd, VarAdd, and so on but, these functions are do not appear in activex.pp (nor anywhere else.)  There are _roughly_ 60 such operation functions.

Were those functions omitted on purpose or should they eventually be added into activex.pp ?

FPC v3.2.2 and Lazarus v4.0rc3 on Windows 7 SP1 64bit.

Zvoni

  • Hero Member
  • *****
  • Posts: 3349
Re: activex.pp missing functions question
« Reply #1 on: July 14, 2025, 03:07:35 pm »
Have you checked in FPC3.2.4-RC1 if those are there?
One System to rule them all, One Code to find them,
One IDE to bring them all, and to the Framework bind them,
in the Land of Redmond, where the Windows lie
---------------------------------------------------------------------
Code is like a joke: If you have to explain it, it's bad

440bx

  • Hero Member
  • *****
  • Posts: 6334
Re: activex.pp missing functions question
« Reply #2 on: July 14, 2025, 03:12:58 pm »
No, I have not.  Have you ?
FPC v3.2.2 and Lazarus v4.0rc3 on Windows 7 SP1 64bit.

Thaddy

  • Hero Member
  • *****
  • Posts: 18938
  • Glad to be alive.
Re: activex.pp missing functions question
« Reply #3 on: July 14, 2025, 03:20:46 pm »
I did. They are in trunk and likely backported to 3.2.4.
Around line 4900
Recovered from removal of tumor in tongue following tongue reconstruction with a part from my leg.

Zvoni

  • Hero Member
  • *****
  • Posts: 3349
Re: activex.pp missing functions question
« Reply #4 on: July 14, 2025, 03:38:51 pm »
No, I have not.  Have you ?
Can't install. Company-Laptop from where i'm writing currently
One System to rule them all, One Code to find them,
One IDE to bring them all, and to the Framework bind them,
in the Land of Redmond, where the Windows lie
---------------------------------------------------------------------
Code is like a joke: If you have to explain it, it's bad

440bx

  • Hero Member
  • *****
  • Posts: 6334
Re: activex.pp missing functions question
« Reply #5 on: July 14, 2025, 04:11:01 pm »
I did. They are in trunk and likely backported to 3.2.4.
Around line 4900
Good to know.  There is no need to do anything since it's already done.
FPC v3.2.2 and Lazarus v4.0rc3 on Windows 7 SP1 64bit.

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 12767
  • FPC developer.
Re: activex.pp missing functions question
« Reply #6 on: July 14, 2025, 05:00:03 pm »
There are other functions that do operations on the variant types such as: VarAbs, VarAnd, VarAdd, and so on but, these functions are do not appear in activex.pp (nor anywhere else.)  There are _roughly_ 60 such operation functions.

Were those functions omitted on purpose or should they eventually be added into activex.pp ?

Not special reason. Seems superfluous since we have a complete portable variant implementation because we also use them for database (and then they have support for multiple native FPC/Delphi string types) etc.

 

TinyPortal © 2005-2018