Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

is lstrcpy a unicode or ansi api?

150 views
Skip to first unread message

lwl

unread,
Feb 27, 2008, 10:10:27 AM2/27/08
to
Hi,

Must i declare external function lstrcpy as:
Function long lstrcpy(long Destination, REF string Source) library
"kernel32.dll" alias for "lstrcpy;ansi"
or
Function long lstrcpy(long Destination, REF string Source) library
"kernel32.dll" alias for "lstrcpy"

Roland Smith [TeamSybase]

unread,
Feb 27, 2008, 2:20:24 PM2/27/08
to
lstrcpy is Ansi so would need ;Ansi in the alias.

There is also the lstrcpyW function in kernel32.dll which is Unicode. I
would declare it like this and refer to it as lstrcpy within my code.

Function long lstrcpy ( long Destination, Ref string Source ) Library
"kernel32.dll" Alias For "lstrcpyW"


lwl

unread,
Feb 27, 2008, 10:56:33 PM2/27/08
to
Thank you Roland,I'm using nvo_tooltips ,If I declare lstrcpy with
lstrcpyW,tooltips show the tips only one character .My pb version is 10.5.2
7564,Window version is XP sp2 Chinese

"Roland Smith [TeamSybase]" <rsmith_at_trusthss_dot_com> 写入消息新闻:47c5b7f8$1@forums-1-dub...

Jeremy Lakeman

unread,
Feb 28, 2008, 4:46:45 AM2/28/08
to
Function long lstrcpy(long Destination, REF string Source) library
"kernel32.dll" alias for "lstrcpyW"


On Feb 28, 1:56 pm, "lwl" <l...@esunsoft.cn> wrote:
> Thank you Roland,I'm using nvo_tooltips ,If I declare lstrcpy with
> lstrcpyW,tooltips show the tips only one character .My pb version is 10.5.2
> 7564,Window version is XP sp2 Chinese
>

> "Roland Smith [TeamSybase]" <rsmith_at_trusthss_dot_com> дÈëÏûÏ¢ÐÂÎÅ:47c5b7f8$1@forums-1-dub...

ankit...@gmail.com

unread,
Oct 4, 2013, 9:36:55 AM10/4/13
to
Hi lwl,

I know it's been a while you asked this question. I am facing the same problem in PB 12.5.1. Were yo uable to find the colution for this?

0 new messages