jni_cpp.h

来自「C调用Java的一个例子程序」· C头文件 代码 · 共 78 行

H
78
字号
/* ^_^ 
 *
 *		Copyright (c) 2006 Hexin
 *
 *	Description:
 *				main include
 *	Create:
 *		Date			  Time				Author
 *	------------------------------------------------
 *   2006-3-17           14:34:55			XiaoWei
 */

/* ^_^ 
 *	 Location : 
 *	 File     : jni_cpp.h
 *	 Version  : 1.0.0.0
 *	 Note     : 
 */
#ifndef  __JNI_CPP_H__
#define  __JNI_CPP_H__

#ifdef  JNI_CPP_LIB
	#ifdef _DEBUG
		#ifdef _CONSOLE
			#pragma comment(lib,"jni_cpp_lib_dc.lib")
		#else
			#pragma comment(lib,"jni_cpp_lib_dw.lib")
		#endif
	#else
		#ifdef _CONSOLE
			#pragma comment(lib,"jni_cpp_lib_rc.lib")
		#else
			#pragma comment(lib,"jni_cpp_lib_rw.lib")
		#endif
	#endif
#endif

#include "JNI_Object.h"
#include "JAVA_Class.h" 
#include "JAVA_Method.h"
#include "JAVA_Field.h"
#include "JAVA_VM.h"
#include "JAVA_String.h"
#include "JAVA_Object.h"
#include "JAVA_Array.h"




/* ^_^ 
 *
 * Funtcion Type  :  Globle Function
 * Funtcion Name  :  LoadJarLibrary
 *   Return Type  :  bool	
 *
 *	Parameter 1	: const char* fileName
 *
 *   Note:
 *		 input the path
 *
 *	Create	:   
 *		Date			   Time				Author
 *	------------------------------------------------
 *   2006-4-8           13:38:40			XiaoWei
 */
bool	JNI_CPP_LoadJarLibrary(const char* fileName);


bool	JNI_CPP_StartVM(long _Ver = JNI_VERSION_1_4);

void	JNI_CPP_EndVM();


JNI_Env*	JNI_CPP_StartSubEnv();

void		JNI_CPP_EndSubEnv();

#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?