void ConvertCharToLP(const char* str, LPCTSTR& strLP)
{
int length = sizeof(TCHAR)*(strlen(str) + 1);
LPTSTR tcBuffer = new TCHAR[length];
memset((void*)tcBuffer, 0, length);
MultiByteToWideChar(CP_ACP, 0, str, strlen(str), tcBuffer, length);
strLP = (LPCTSTR)tcBuffer;
}
{
int length = sizeof(TCHAR)*(strlen(str) + 1);
LPTSTR tcBuffer = new TCHAR[length];
memset((void*)tcBuffer, 0, length);
MultiByteToWideChar(CP_ACP, 0, str, strlen(str), tcBuffer, length);
strLP = (LPCTSTR)tcBuffer;
}