Recent

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

bobonwhidbey

  • Hero Member
  • *****
  • Posts: 592
    • 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?
Lazarus 3.0RC2, FPC 3.2.2 x86_64-win64-win32/win64

bigeno

  • Sr. Member
  • ****
  • Posts: 266
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: 11916
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.

bobonwhidbey

  • Hero Member
  • *****
  • Posts: 592
    • 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 »
Lazarus 3.0RC2, FPC 3.2.2 x86_64-win64-win32/win64

 

TinyPortal © 2005-2018