[lazarus] Can't compile win32 interface

Mattias Gaertner nc-gaertnma at netcologne.de
Wed Oct 29 14:41:48 EST 2003


On Wed, 29 Oct 2003 11:37:35 +0100
Micha Nelissen <M.Nelissen at student.tue.nl> wrote:

> Vincent Snijders wrote:
> 
> > Hi,
> > 
> > The latest changes to the interfacebase class changed
> > AttachMenuToWindow(AMenu: TMenu) to AttachMenuToWindow(AMenuObject:
> > TComponent). 
> > 
> > But the implementation in the win32object around line 1237 in
> > win32object.inc still uses AMenu, and not AMenuObject. Therefore I can't
> > compile the win32 interface. Can somebody (with CVS access) fix this?

Sorry. My cross compilation setup was broken, and so I couldn't test the
win32 intf. 
Fixed.

 
> Mattias, could you explain the problem you were trying to solve? "fixed 
> unit circle", but afaik, it compiled cleanly before you made this 
> change? I also don't see any 'uses' units removed?

I removed "menus" from the interfacebase.pp uses section to break the
circle. The circle appeared, when compiling with -dUseFPImage.

(Menus.pp needs Graphics.pp, which needs IntfGraphics.pp, which needs the
Interfacebase.pp, so you can't use menus in InterfaceBase.pp)


Mattias






More information about the Lazarus mailing list