General

If you have any general questions about Ebsotech, please send e-mail to info@ebsotech.com or contact Ebsotech Research and Development Center at the following address:

Ebsotech, Inc.
Rajakyläntie 28 A
01280 Vantaa
FINLAND

Tel: +358(0)442885299

Details
Which string type should I use, LPSTR, LPWSTR, or LPTSTR?

Typically, you should use LPTSTR if you want that your application can be compiled to use wide-character strings in a UNICODE compilation, and narrow-character string otherwise.

Hence, you should normally use the "generic" form of all function calls, such as dxaStrDup instead of dxaStrDupA or dxaStrDupW. Similarly, you should use the _dt version of the function mappings, such as _dtprintf instead of _dnprintf or _dwprintf.

However, notice that you often cannot use LPTSTR or TCHAR for certain tasks, such as in communication protocol messages, if the protocol is specifically defined to use either LPSTR or LPWSTR (or CHAR or WCHAR). In such cases, you need to do an appropriate conditional conversion between your LPTSTR and the protocol's LPSTR or LPWSTR, and possibly also make a character set conversion.


« Go back
Ebsotech Sales
For additional information on how to purchase Ebsotech's products and services, please contact sales@ebsotech.com
Ebsotech Partner Program
If you are interested in partnering with Ebsotech, please contact partners@ebsotech.com
Ebsotech IX™ SDK
If you have any questions or requests regarding Ebsotech IX™ SDK, please send e-mail to sdk@ebsotech.com