On Sat, 27 Aug 2005 20:57:45 +0200
Bogus__aw Brandys <[EMAIL PROTECTED]> wrote:

> Mattias Gaertner wrote:
> > On Sat, 27 Aug 2005 10:10:05 -0700
> > George Lober <[EMAIL PROTECTED]> wrote:
> > 
> > 
> >>Bogus__aw Brandys wrote:
> >>
> >>
> >>>Mattias Gaertner wrote:
> >>> 
> >>>
> >>>
> >>>>On Tue, 01 Jan 2002 04:33:30 +0100
> >>>>Bogus__aw Brandys <[EMAIL PROTECTED]> wrote:
> >>>>
> >>>>
> >>>>   
> >>>>
> >>>>
> >>>>>Hi,
> >>>>>
> >>>>>I can compile simple  application with one Form under Lazarus 0.9.9
> >and >>>>Win32, but when I use MessageBox function it doesn't find it even
> >if >>>>Dialogs unit is included in uses clause.
> >>>>>Why ?
> >>>>>     
> >>>>>
> >>>>
> >>>>Because it's a widgetset function. In unit LCLIntf. In Delphi: The
> >>>
> >>>windows >unit.
> >>>
> >>>>Please use MessageDlg or ShowMessage instead.
> >>>>
> >>>>
> >>>>Mattias
> >>>>   
> >>>>
> >>>
> >>>Hmm... MessageDlg is more portable ? Bad news as I use MessageBox all
> >>>over the Delphi sources I'd like to port. It should work also under
> >>>Linux.MessageBox is not supported under Linux ?
> >>>
> >>>Where can I find a list or on-platform-only functions to avoid or
> >>>alternatively a list of multiplatform functions (just names) ?
> >>>
> >>>Regards
> >>>Boguslaw Brandys
> >>>
> >>> 
> >>>
> >>
> >>
> >>Try this page: http://www.lazarus.freepascal.org/lcl_doc/allident.html
> >>
> >>According to that page MessageBox seems to be a part of the LCLLinux
> >unit.
> > 
> > 
> > LCLLinux is the old name of LCLIntf.
> > 
> > Mattias
> > 
> 
> Anyway, I'm sure that having a list of depreciated functions (not
> multiplatform safe) could be very useful especialy for peoplewanting to
> port their Delphi stuff.I doubt if somebody could remember all
> differences between Free Pascal and Delphi.

Indeed. There are many hints on the wiki. And more are needed. Any help is
welcome.


> So, to use MessageBox under Linux I must include LCLIntf unit in "uses",
> and this is depreciated because there is portable MessageDlg, right ?

I'm curious, why did you think, that the winapi MessageBox is more portable
than Delphi's MessageDlg? In general: Any use of the windows unit should be
avoided.

 
> But what I should do to use MessageBox under  Windows and Free Pascal
> (for example when there are a lot of occurences in sources)?

There are a lot of possibilities. For example replace MessageBox with
Application.MessageBox.


Mattias

_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to