Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2003-10

Can't compile win32 interface

5 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Vincent Snijders

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?

Regards,
Vincent.

Reply by email

Mattias Gaertner
to Vincent Snijders
Show quoted text 11 lines
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

Reply by email

Micha Nelissen
to Vincent Snijders: The latest changes to the interfacebase class changed AttachMenuToWindow(AMenu: TMenu) to…
Mattias Gaertner wrote 11 lines
On Wed, 29 Oct 2003 11:37:35 +0100 Micha Nelissen wrote: >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.

Ok, I will try to keep this in mind. Why isn't it on by default?

Micha.

Reply by email

Micha Nelissen
to Vincent Snijders: The latest changes to the interfacebase class changed AttachMenuToWindow(AMenu: TMenu) to…
Vincent Snijders wrote 9 lines
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?

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?

Micha.

Reply by email

Mattias Gaertner
to Vincent Snijders: The latest changes to the interfacebase class changed AttachMenuToWindow(AMenu: TMenu) to…
Show quoted text 15 lines
Mattias Gaertner wrote: > On Wed, 29 Oct 2003 11:37:35 +0100 > Micha Nelissen wrote: > > >>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. Ok, I will try to keep this in mind. Why isn't it on by default?

FPImage needs the current fpc from cvs/daily snapshot. Also our Win32 intf lacks RawImage support.

Mattias

Reply by email