On 25/04/06, shoichi <[EMAIL PROTECTED]> wrote:
>  It works!Just LPSTR -->LPTSTR
>  LPCSTR -->LPCTSTR
> What's the different betwween without"T" and with "T"?

Microsoft uses LPTSTR and LPCTSTR names in their winscard API. I don't
know why pcsc-lite was using LPSTR and LPCSTR.

If you look in /usr/include/PCSC/wintypes.h you see that pcsc-lite
uses the same definition for LPTSTR and LPSTR.

The problem you had is that LPCSTR was _not_ defined by pcsc-lite,
only LPCTSTR was. So you got some warnings (warning: `LPSTR' is
deprecated) and one error (error: `LPCSTR' undeclared).

After some research I discovered that the file wintypes.h was changed
[1] by... me in August 2003 to remove the definition of LPTSTR in
changeset 310 [2].

This issue is problematic since Apple is still using an version of old
pcsc-lite. The version is old enough to still include the definition
of LPTSTR. But LPCTSTR is not defined (it was introduced in revision
912 in June 2004). So the same program will not compile directly on
Mac OS X.

Bye,

[1] 
http://svn.debian.org/wsvn/pcsclite/trunk/PCSC/src/PCSC/wintypes.h?op=diff&rev=310&sc=0
[2] http://svn.debian.org/wsvn/pcsclite/trunk/PCSC/src/PCSC/?rev=310&sc=1

--
  Dr Ludovic Rousseau

_______________________________________________
Muscle mailing list
[email protected]
http://lists.drizzle.com/mailman/listinfo/muscle

Reply via email to