I have a static library. This library have the following function defined
int WriteData(LPTSTR s)
The sample to call the function is
I would wrap your strings in the _T(...) macro. That way its portable between ANSI and UNICODE builds.
_T(...)
Note that you are using the portable string type - LPTSTR - note the T. It will change between ANSI and UNICODE based on build settings.
LPTSTR
T