⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 jni_cpp.h

📁 C调用Java的一个例子程序
💻 H
字号:
/* ^_^ 
 *
 *		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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -