Last active
December 17, 2015 05:48
-
-
Save masazdream/5560082 to your computer and use it in GitHub Desktop.
JNI JavaからCPPを呼び出す<2>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //============================================================================ | |
| // Name : HelloWorldJNI.cpp | |
| // Author : | |
| // Version : | |
| // Copyright : Your copyright notice | |
| // Description : Hello World in C++, Ansi-style | |
| //============================================================================ | |
| #include "jp_sp_jni_HelloWorldJNI.h" | |
| JNIEXPORT jstring JNICALL | |
| Java_jp_sp_jni_HelloWorldJNI_sayHelloWorld(JNIEnv *env, jobject obj){ | |
| return env->NewStringUTF("Hello World"); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment