Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在编写一个 JNI 应用程序。在我的 C++ 代码中,我有 std::string. 我需要从中获取 ajchar *以传递给 Java 函数。我该怎么做呢?
std::string
jchar *
使用env->NewStringUTF(), 从char*.
env->NewStringUTF()
char*