const char * を LPTSTR に変換しようとしています。しかし、それを実行するために USES_CONVERSION を使用したくありません。
以下は、USES_CONVERSION を使用して変換するために使用したコードです。sprintf や tcscpy などを使用して変換する方法はありますか?
USES_CONVERSION;
jstring JavaStringVal = (some value passed from other function);
const char *constCharStr = env->GetStringUTFChars(JavaStringVal, 0);
LPTSTR lpwstrVal = CA2T(constCharStr); //I do not want to use the function CA2T..