On 1/1/06, L505 <[EMAIL PROTECTED]> wrote:
> > function MakeMD5Hash(ASource: PChar;
> >                      ADestination: PChar;
> >                      ADestinationMaxSize: Cardinal): Boolean; stdcall;
>
>
> Also probably a good idea to use fixed types such as longint and longbool, 
> and bool
> rather than integer and cardinal, so the people tapping into the function know
> exactly what variable to declare in their language at a certain point of the 
> year (if
> a new compiler comes out things sometimes change). In the documentation for 
> the
> function it would be good to specify how big a longint really is, as some C
> programmers may have no clue what a longint really is in Pascal.

Now I like a lot the way this function is desigend and I'll do it
exactly like that. I'll also use a standard type as suggested because
of the same reason: we all know of what we are talking about,
especially with the 64bits age comming quite fast. This is an overkill
design for the simple need I have, but my personal way of work is
always: do it right the first time (it takes the same time to code a
good or a bad function (by design).

Thank you for this contrib. I'm glad to see the usual linux way to do
the thing. (I was in fact asking myself of what it would have look
like in linux world).

--
Alexandre Leclerc

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

Reply via email to