JNIEXPORT jint JNICALL Java_Beamin_BeaminFunc_WindcallInitializeService
(JNIEnv* env, jobject obj, jstring j_String)
{
// 1. jstring을 const char*로 변환
const char* c_String = (env)->GetStringUTFChars(j_String, NULL);
// 2. const char*를 wchar_t로 변환
const size_t c_Size = strlen(c_String) + 1;
wchar_t w_String[256] = L"";
mbstowcs(w_String, c_String, c_Size);
}
댓글