View difference between Paste ID: 3H7pCERK and Ey3TAAQg
SHOW: | | - or go back to the newest paste.
1
#include <jni.h>
2
#include <windows.h>
3
#include <iostream>
4
#include "throwJNI.h"
5
#include "net_sf_junace_UnACE.h"
6
7
using namespace std;
8
HINSTANCE AceDllInstance;
9
10
JNIEXPORT void JNICALL Java_net_sf_junace_UnACE_nativeACEList
11
  (JNIEnv *, jobject, jstring, jobject)
12
{
13
	cout<<"wolam Java_net_sf_junace_UnACE_nativeACEList"<<endl;
14
}
15
16
JNIEXPORT jboolean JNICALL Java_net_sf_junace_UnACE_LoadAceDll
17
  (JNIEnv *env, jobject)
18
{
19
	AceDllInstance = LoadLibrary(L"UnAceV2.Dll");
20
	if (AceDllInstance) {
21
	}
22
	else 
23
		throwUnsatisfiedLinkError(env, "Can't load UnAceV2.Dll");
24
	return AceDllInstance != NULL;
25
}