Sign in Join

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

Mailing lists / lazarus / 1999-10

Need opinion

9 messages · 6 people ·

Reply by email Subscribe to this list Your subscription

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

Shane Miller
The Windows.pp file should be used in both Linux and Windows.  If not, then

1) I need to put a {$IFDEF} in before the uses clause to remove the windows unit
2) How are yuou going to call some of these procedures when you are using windows? Remember, you DON'T have the delphi windows.pas file UNLESS you are writing your Apps under Delphi!

The Windows.pp file has to be made for both environmewnts and has tro contain a {$IFDEF LINUX} or {$IFDEF WIN32} or something to that effect.

Shane

>> Florian Klaempfl 10/26/99 07:29AM >>>
Marc Weustink wrote 18 lines
At 15:44 25-10-99 -0500, Shane Miller wrote: >In the MWEDIT source, they call some WINAPI calls like GETKEYSTATE and STRINGOFCHAR. > >Where should I put these? MWEDIT expects them in a windows.pas (or .pp) file but I would assume that once we write them, we would allow Linux users to use them so I could put them in a linux.pp file, but them mwedit doesn't find them. > >Any simple way around this? Should I just write it twice, once in the windows.pp file and once in the linux.pp file because you would assume that if they are using windows.pp they WOULDN'T be using Linux.pp Nah, I dont think this is the way. I t should be just one file. This way you introduce platform specific files. Maybe we can see it as an (OS)windows file in stead odf an (MS)windows file ?

But don't name it windows.pp! This will lead to conflicts with existing the windows.pp. What about a simple lclbase.pp?

_________________________________________________________________ To unsubscribe: mail with
"unsubscribe" as the Subject
archives at http://www.miraclec.com/list_archives/lazarus

Reply by email

Marc Weustink
to Shane Miller: In the MWEDIT source, they call some WINAPI calls like GETKEYSTATE and STRINGOFCHAR.…
Shane Miller wrote
In the MWEDIT source, they call some WINAPI calls like GETKEYSTATE and

STRINGOFCHAR.

Where should I put these? MWEDIT expects them in a windows.pas (or .pp)

file but I would assume that once we write them, we would allow Linux users to use them so I could put them in a linux.pp file, but them mwedit doesn't find them.

Any simple way around this? Should I just write it twice, once in the

windows.pp file and once in the linux.pp file because you would assume that if they are using windows.pp they WOULDN'T be using Linux.pp

Nah, I dont think this is the way. I t should be just one file. This way you introduce platform specific files. Maybe we can see it as an (OS)windows file in stead odf an (MS)windows file ?

Marc

Reply by email

Shane Miller

In the MWEDIT source, they call some WINAPI calls like GETKEYSTATE and STRINGOFCHAR.

Where should I put these? MWEDIT expects them in a windows.pas (or .pp) file but I would assume that once we write them, we would allow Linux users to use them so I could put them in a linux.pp file, but them mwedit doesn't find them.

Any simple way around this? Should I just write it twice, once in the windows.pp file and once in the linux.pp file because you would assume that if they are using windows.pp they WOULDN'T be using Linux.pp

Shane

Reply by email

Michael Van Canneyt
to Shane Miller: The Windows.pp file should be used in both Linux and Windows. If not, then 1) I need to…
Shane Miller wrote 6 lines
The Windows.pp file should be used in both Linux and Windows. If not, then 1) I need to put a {$IFDEF} in before the uses clause to remove the windows unit 2) How are yuou going to call some of these procedures when you are using windows? Remember, you DON'T have the delphi windows.pas file UNLESS you are writing your Apps under Delphi! The Windows.pp file has to be made for both environmewnts and has tro contain a {$IFDEF LINUX} or {$IFDEF WIN32} or something to that effect.

But windows.pp already exists for Windows. Thus you must make a replacement file for linux only, and it should be compatible with the existing win32 windows.pp

So any lazarus app compiles both on windows and linux, with a minimal overhead... Although I think that on the level of lazarus (LCL) there should NEVER be a dependence on Windows or Linux. Just GTK/Qt/win32 for the low-level gui calls and sysutils or low-level classes for all other stuff.

Michael.

Reply by email

Baeseman, Cliff

I actually just about have Win32 working now with the stuff that we have. I was having a problem or two last night with the event stuff but I belive I should have that working tonight. Jeff has to pass a dart tonight so I will continue to refine that this evening and pass that off. He can then take what I gave him and run with it or do something different("up to him")..

We are going to need winproc for both this and the QT engine. Soon as I pass some clean code to Jeff I am going to go back into Linux and finish the QT engine.

This will give everyone Linux GTK, Linux QT, Win GTK, Win Native, Win QT ("not free")..

What more could you ask for?. Don't answer that ;)...

Cliff

Earlier message 40 lines
-----Original Message----- From: Michael Van Canneyt Sent: Tuesday, October 26, 1999 8:49 AM To: Subject: Re: [lazarus] Need opinion On Tue, 26 Oct 1999, Shane Miller wrote: > The Windows.pp file should be used in both Linux and Windows. If not, then > > 1) I need to put a {$IFDEF} in before the uses clause to remove the windows unit > 2) How are yuou going to call some of these procedures when you are using windows? Remember, you DON'T have the delphi windows.pas file UNLESS you are writing your Apps under Delphi! > > The Windows.pp file has to be made for both environmewnts and has tro contain a {$IFDEF LINUX} or {$IFDEF WIN32} or something to that effect. But windows.pp already exists for Windows. Thus you must make a replacement file for linux only, and it should be compatible with the existing win32 windows.pp So any lazarus app compiles both on windows and linux, with a minimal overhead... Although I think that on the level of lazarus (LCL) there should NEVER be a dependence on Windows or Linux. Just GTK/Qt/win32 for the low-level gui calls and sysutils or low-level classes for all other stuff. Michael. _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.miraclec.com/list_archives/lazarus

Reply by email

Florian Klaempfl
to Marc Weustink: STRINGOFCHAR. file but I would assume that once we write them, we would allow Linux users…
Marc Weustink wrote 18 lines
At 15:44 25-10-99 -0500, Shane Miller wrote: >In the MWEDIT source, they call some WINAPI calls like GETKEYSTATE and STRINGOFCHAR. > >Where should I put these? MWEDIT expects them in a windows.pas (or .pp) file but I would assume that once we write them, we would allow Linux users to use them so I could put them in a linux.pp file, but them mwedit doesn't find them. > >Any simple way around this? Should I just write it twice, once in the windows.pp file and once in the linux.pp file because you would assume that if they are using windows.pp they WOULDN'T be using Linux.pp Nah, I dont think this is the way. I t should be just one file. This way you introduce platform specific files. Maybe we can see it as an (OS)windows file in stead odf an (MS)windows file ?

But don't name it windows.pp! This will lead to conflicts with existing the windows.pp. What about a simple lclbase.pp?

Reply by email

Marc Weustink
to Shane Miller: Oh, I didn't know Windows.pp existed already.... I guess the best way around this then is…
Shane wrote 9 lines
Oh, I didn't know Windows.pp existed already.... I guess the best way around this then is to create a Linux.pp file and add a {$IFDEF LINUX} uses blah blah, blah; {$ELSE} ues blah,windows,blah; {$ENDIF}

Don't like this idea.

>>> Michael Van Canneyt 10/26/99 08:41AM >>> But windows.pp already exists for Windows. Thus you must make a

replacement >file for linux only, and it should be compatible with the existing win32 >windows.pp

Yes, the file exists, but why can't we use it for MSWindows as wal as Linux ?

So any lazarus app compiles both on windows and linux, with a minimal

overhead...

Although I think that on the level of lazarus (LCL) there should NEVER be a dependence on Windows or Linux. Just GTK/Qt/win32 for the low-level gui calls and sysutils or low-level classes for all other stuff.

So..... one file

Marc

Reply by email

Peter Vreman
to Marc Weustink
Show quoted text 17 lines
>I guess the best way around this then is to create a Linux.pp file and add a > >{$IFDEF LINUX} >uses blah blah, blah; >{$ELSE} >ues blah,windows,blah; >{$ENDIF} Don't like this idea. >>>> Michael Van Canneyt 10/26/99 08:41AM >>> > >But windows.pp already exists for Windows. Thus you must make a replacement >file for linux only, and it should be compatible with the existing win32 >windows.pp Yes, the file exists, but why can't we use it for MSWindows as wal as Linux ?

Never create a file with the same name as a unit in the RTL/FCL it'll only create a lot of confusion.

just name the file soemthing like: 'lclwin' and 'lcllinux' if you really need such files.

Peter

Reply by email

Shane Miller

Oh, I didn't know Windows.pp existed already....

I guess the best way around this then is to create a Linux.pp file and add a

{$IFDEF LINUX}
uses blah blah, blah;
{$ELSE}
ues blah,windows,blah;
{$ENDIF}

Shane

>> Michael Van Canneyt 10/26/99 08:41AM >>>

But windows.pp already exists for Windows. Thus you must make a replacement file for linux only, and it should be compatible with the existing win32 windows.pp

So any lazarus app compiles both on windows and linux, with a minimal overhead... Although I think that on the level of lazarus (LCL) there should NEVER be a dependence on Windows or Linux. Just GTK/Qt/win32 for the low-level gui calls and sysutils or low-level classes for all other stuff.

Michael.

Reply by email