Re: [fpc-pascal]About order of units...

2003-08-30 Thread Peter Vreman
>> The real problem here is types declared in the windows unit where, as I >> pointed out previously, LongInt has been confused with BYTE, WORD and LONGWORD >> types... > Can you name examples of that? A little more information ... I just ran h2pas on a couple of header files from the SDK... It

Re: [fpc-pascal]About order of units...

2003-08-30 Thread L D Blake
In reply to your message of August 30, 2003 >> The real problem here is types declared in the windows unit where, as I >> pointed out previously, LongInt has been confused with BYTE, WORD and LONGWORD >> types... > Can you name examples of that? A little more information ... I just ran h2pas o

Re: [fpc-pascal]About order of units...

2003-08-30 Thread L D Blake
In reply to your message of August 30, 2003 >> The real problem here is types declared in the windows unit where, as I >> pointed out previously, LongInt has been confused with BYTE, WORD and LONGWORD >> types... > Can you name examples of that? > Most notably about byte's and word's confusion

Re: [fpc-pascal]About order of units...

2003-08-30 Thread Marco van de Voort
> The real problem here is types declared in the windows unit where, as I > pointed out previously, LongInt has been confused with BYTE, WORD and LONGWORD > types... Can you name examples of that? Most notably about byte's and word's confusion (so places where types have a different size then th

Re: [fpc-pascal]About order of units...

2003-08-30 Thread Peter Vreman
intead they will co-exist in one namespace. However, this is not implemented in FPC 1.0.x so if you use only FPC 1.0.x there's nothing to worry (however you should be aware of this if you're writing some non-testing code, that you might want to compile some day with FPC 1.1 or higher). FPC 1.1

Re: [fpc-pascal]About order of units...

2003-08-30 Thread L D Blake
In reply to your message of August 30, 2003 > Yes. Identifiers in Windows unit will be hidden by same identifiers in > WinFix unit. Ok... I was pretty sure that would work. And as you point out so well I'm aware that it's stopgap at best. The real problem here is types declared in the windows u

Re: [fpc-pascal]About order of units...

2003-08-30 Thread Michalis Kamburelis
L D Blake wrote: > Ok, still messing with this silly problem... > > Now the question is about order of declaration in units... > > Lets say I wrote a unit "WinFix" with some of these cursed range checking > problems cleaned up... am I correct in assuming that if I added it to my units > list lik

Re: Hacking was Re: [fpc-pascal]Lazarus

2003-08-30 Thread A.J. Venter
Not to be pedantic, but can I request that we as TRUE hackers at least get the terminology right. The site was a cracked by a cracker. FPC was created, and is used by a large number of hackers. Maybe I should just give upsigh. Ciao A.J. On Fri, 2003-08-29 at 12:31, Sigurd Stordal wrote: >

[fpc-pascal]About order of units...

2003-08-30 Thread L D Blake
Ok, still messing with this silly problem... Now the question is about order of declaration in units... Lets say I wrote a unit "WinFix" with some of these cursed range checking problems cleaned up... am I correct in assuming that if I added it to my units list like this: Uses

Re: Hacking was Re: [fpc-pascal]Lazarus

2003-08-30 Thread Michael A. Hess
On Fri, 29 Aug 2003, Sigurd Stordal wrote: > > That's so pathetic. What'd the hacker do anyhow ? And how the heck does > > a hacker break into a *nix box ? (I assume it is...) > It's easy. At least if you run an old redhat, or run some of the dangerous > services. You really need to be deligent a

Re: [fpc-pascal]More strangeness...

2003-08-30 Thread Michalis Kamburelis
Marco van de Voort wrote: ... > Does somebody know something more about Winapi errorhandling? ... It works the same way as under libc but instead checking ErrNo you check GetLastError. Expressing it as clearly as I can: For each WinPAI call you should check the WinAPI documentation (as with ev

Re: [fpc-pascal]More strangeness...

2003-08-30 Thread L D Blake
In reply to your message of August 30, 2003 > Something else. But I think you are on the wrong track with HWND. This is a possibility I've considered. It might be something else entirely... but it is definately something related to my program... Another possibility, and one I've tested for, is

Re: [fpc-pascal]More strangeness...

2003-08-30 Thread L D Blake
In reply to your message of August 30, 2003 > We can discuss principles for hours of course, but that doesn't help you. > Did you try to change the HWND type from longint to DWORD or Cardinal > (which is the same) in the windows unit ? If so, does it help ? I re-declared Hwind to be a longword in

Hacking was Re: [fpc-pascal]Lazarus

2003-08-30 Thread Sigurd Stordal
> That's so pathetic. What'd the hacker do anyhow ? And how the heck does > a hacker break into a *nix box ? (I assume it is...) It's easy. At least if you run an old redhat, or run some of the dangerous services. I remember my machine been hacked into some year ago. The redhat of then just compl

Re: [fpc-pascal]More strangeness...

2003-08-30 Thread Marco van de Voort
> In reply to your message of August 29, 2003 > > > And it has been already a longint for 5 years. > > Which pre-dates all of NT4, win2000, XP, 2003 ... Which are true 32 bit > operating systems. NT4 is older, I run 2000 and before that its beta's on my work space for 24 hours/a week since earl

Re: [fpc-pascal]More strangeness...

2003-08-30 Thread Marco van de Voort
> In reply to your message of August 29, 2003 > > > Yes I think about it. Typed negative on this side (the pascal side). On > > 2-complements it is the same binary layout, only the interpretation is > > different. The win32 API sees no difference, since it puts its own typing > > over it. > > No

Re: [fpc-pascal]More strangeness...

2003-08-30 Thread Michael . VanCanneyt
On Fri, 29 Aug 2003, L D Blake wrote: > In reply to your message of August 29, 2003 > > Yes I think about it. Typed negative on this side (the pascal side). On > > 2-complements it is the same binary layout, only the interpretation is > > different. The win32 API sees no difference, since it pu

Re: [fpc-pascal]More strangeness...

2003-08-30 Thread L D Blake
In reply to your message of August 29, 2003 > Yes I think about it. Typed negative on this side (the pascal side). On > 2-complements it is the same binary layout, only the interpretation is > different. The win32 API sees no difference, since it puts its own typing > over it. Not to be sarcasti

Re: [fpc-pascal]More strangeness...

2003-08-30 Thread L D Blake
In reply to your message of August 29, 2003 > And it has been already a longint for 5 years. Which pre-dates all of NT4, win2000, XP, 2003 ... Which are true 32 bit operating systems. I can't help wondering if the handle is somehow being changed by the type mismatch giving rise to duplicate han

Re: [fpc-pascal]More strangeness...

2003-08-30 Thread L D Blake
In reply to your message of August 29, 2003 > Yes I think about it. Typed negative on this side (the pascal side). On > 2-complements it is the same binary layout, only the interpretation is > different. The win32 API sees no difference, since it puts its own typing > over it. Turn on Pascal's ra