>I'm using an API (AccuMail) call which returns a
>pointer to a string. What I think I need to do
>is something like:
>
>DECLARE _StrCpy IN ???? LONG @src, LONG @dest
>cMsg = space( 128)
>if lErr
> _StrCpy( Z4ErrMsg( Z4ErrNum()), @cMsg)
>endif
>
>or some such.
>
>The online docs refer to the _StrCpy() call
>but doesn't say where it's found. I've tried
>... IN Win32API ..., but obviously if that
>worked I wouldn't be writing :)
>
>My questions are 1) am I on the right track?
>2) Where are the routines listend in the VFP
>API reference?
Hi Keith,
I think you're on the right track, just a little off in the declaration. If you have a pointer to a string use:
DECLARE INTEGER lstrcpy IN Win32API;
STRING @lpString1, INTEGER lpString2
lcbuffer = SPACE(100)
= lstrcpy(@lcbuffer, lnpointer)
will copy the null terminated string pointed to by lnpointer into the buffer.
hth,
George
Ubi caritas et amor, deus ibi est