I have a static library. This library have the following function defined
int WriteData(LPTSTR s)
The sample to call the function is
The L prefix makes the string a wchar_t string. You can use the Windows API function MultiByteToWideChar to convert an ANSI string to a wchar_t string.
MultiByteToWideChar