Recent

Author Topic: VTV / VirtualStringTree & fpc 2.6.1 problems?  (Read 5510 times)

IPguy

  • Sr. Member
  • ****
  • Posts: 385
VTV / VirtualStringTree & fpc 2.6.1 problems?
« on: June 28, 2012, 03:32:49 am »
Lazarus has decided it no longer wants to compile the virtualstringtree package.  I'm getting the following error messages:
Code: [Select]
C:\Laz\34510\components\VirtualTreeView\VirtualTrees.pas(1024,20) Error: No matching implementation for interface method "IDropSource.QueryContinueDrag(LongBool,LongWord):LongInt; StdCall;" found

C:\Laz\34510\components\VirtualTreeView\VirtualTrees.pas(1024,20) Error: No matching implementation for interface method "IDropSource.GiveFeedback(LongWord):LongInt; StdCall;" found

The debugger points to line 1024 in VirtualTrees.pas
  TVTDragManager = class(TInterfacedObject, IVTDragManager, IDropSource, IDropTarget)

I've set up a completely new instance of Laz & FPC (using fpcup - thanks BigChimp !) and I'm still having the same issue.

It quit working when I installed
Lazarus-1.1-37738-fpc-2.6.1-20120623-win32
on top of my prior version, which was Laz-1.1-36568-2.6.1, win32-Vista.

I did not change the VTV version.  Once I installed the new version of Laz, I just did a Build-all and that is when the errors showed up.

I would rather not revert Laz if at all possible.

Any hints or thoughts? 

tomek

  • Jr. Member
  • **
  • Posts: 85
Re: VTV / VirtualStringTree & fpc 2.6.1 problems?
« Reply #1 on: June 28, 2012, 08:26:49 am »
FPC rev. 21249
Code: [Select]
function QueryContinueDrag(fEscapePressed: BOOL;grfKeyState: DWORD):HResult;StdCall;
function GiveFeedback(dwEffect: DWORD): HResult;StdCall;

change longword to DWORD

IPguy

  • Sr. Member
  • ****
  • Posts: 385
Re: VTV / VirtualStringTree & fpc 2.6.1 problems?
« Reply #2 on: June 29, 2012, 12:08:31 am »
Thank you!
That worked and I can get back to developing.
I'll produce a diff and attach it to the bug I opened.

 

TinyPortal © 2005-2018