Page 1 of 1

*buffer{#BYTES}

Posted: Thu Jul 13, 2006 12:10 am
by MLK
*buffer{...} instead of AllocateMemory(...) - just like string${...} instead of Space(...)

Code: Select all

ApiCall_(*buffer{1024})

Re: *buffer{#BYTES}

Posted: Thu Jul 13, 2006 9:00 am
by Kale
MLK wrote:*buffer{...} instead of AllocateMemory(...) - just like string${...} instead of Space(...)

Code: Select all

ApiCall_(*buffer{1024})
That looks horrible. Not really Pure.

Posted: Thu Jul 13, 2006 11:29 am
by MLK
so you shouldnt like..

Code: Select all

GetTempPath_(255, @TempPath${255})
..too - but sorry, its already pure :wink:

Posted: Thu Jul 13, 2006 11:59 am
by Flype
i must admit this is handy :

Code: Select all

If GetTempPath_(#MAX_PATH, @result.s{#MAX_PATH})
  Debug result
EndIf