On 12/29/05, L505 <[EMAIL PROTECTED]> wrote:
> > library mydll;
> >
> > function MakeMD5Hash(aValue: pchar): pchar; stdcall;
>
> Pchars are not usually returned as a result, but rather passed as a parameter
>

not to stick my nose in, but what convention makes this a "usually" ?

i'm not a 'C' programmer by any stretch, but i don't _think_ functions
that have a return type of "char*" are that unusual are they ?

in an MD5, i don't think you are going to know how long the returned
string would be right ?

so better to get returned a pointer to string, allocated by the function ?

Tony

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

Reply via email to