Recent

Author Topic: RichMemo component installation problem  (Read 837 times)

bobonwhidbey

  • Sr. Member
  • ****
  • Posts: 478
    • Double Dummy Solver - free download
RichMemo component installation problem
« on: July 16, 2020, 09:00:09 pm »
After switching to Laz 2.0.10 I haven't been able to load the RichMemoPackage. The compiler hangs up on line 60 of the Win32RichMemoOle unit:

Code: Pascal  [Select][+][-]
  1.   TCustomDataObject = class(TCustomObject, IOleObject, IDataObject)
with the message

win32richmemoole.pas(60,23) Error: No matching implementation for interface method "SetData(const tagFORMATETC;var TagSTGMEDIUM;LongBool):LongInt; StdCall;" found

Any idea how I can fix this?
Win10 64-bit / Lazarus 64-bit 2.0.12 / FPC 3.2.0

bigeno

  • Sr. Member
  • ****
  • Posts: 250
Re: RichMemo component installation problem
« Reply #1 on: July 16, 2020, 10:43:28 pm »
SetData here, win32richmemoole.pas:
Code: Pascal  [Select][+][-]
  1.     Function SetData (Const pformatetc : FORMATETC;{$ifdef MEDVAR}var{$ELSE}const{$ENDIF} medium:STGMEDIUM; FRelease : BOOL):HRESULT; StdCall;

fpc/packages/winutils-base/src/activex.pp
Code: Pascal  [Select][+][-]
  1.    Function SetData (Const pformatetc : FORMATETC;var medium:STGMEDIUM;FRelease : BOOL):HRESULT; StdCall;  
   

all good.

are you sure your all sources updated ?

wp

  • Hero Member
  • *****
  • Posts: 8378
Re: RichMemo component installation problem
« Reply #2 on: July 18, 2020, 11:38:01 am »
From where do you have this version? I just checked the TRichMemo distributed by the OPM, and it compiles flawlessly.

Or is your version too old? It's been January when the {$IFDEF MEDVAR} was added to fix a change in the parameter list introduced by FPC.
Mainly Lazarus trunk / fpc 3.2.0 / all 32-bit on Win-10, but many more...

bobonwhidbey

  • Sr. Member
  • ****
  • Posts: 478
    • Double Dummy Solver - free download
Re: RichMemo component installation problem
« Reply #3 on: July 18, 2020, 04:26:34 pm »
I just noticed the "Online Package Manager".  Very cool. And I installed the latest RichMemo from that. What a nice enhancement to Lazarus.
« Last Edit: July 18, 2020, 04:50:14 pm by bobonwhidbey »
Win10 64-bit / Lazarus 64-bit 2.0.12 / FPC 3.2.0

 

TinyPortal © 2005-2018