WLDAP32: implement ldap_err2string
Hans Leidekker
hans at it.vu.nl
Fri Jul 29 09:13:28 CDT 2005
On Friday 29 July 2005 15:55, Dmitry Timoshkov wrote:
> > How would you handle this using LoadString?
>
> Something like this:
>
> PCHAR ldap_err2stringA( ULONG err )
> {
> static char buf[256];
>
> if (!LoadStringA(wldap_hinst, err, buf, 256))
> LoadStringA(wldap_hinst, IDS_DEFAULT_ERROR, buf, 256);
>
> return buf;
> }
Thanks, that looks reasonable. Now let's see if I can learn how to
do resource files...
-Hans
More information about the wine-devel
mailing list