Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <jni.h>
- #include <windows.h>
- #include <iostream>
- #include "throwJNI.h"
- #include "net_sf_junace_UnACE.h"
- using namespace std;
- HINSTANCE AceDllInstance;
- JNIEXPORT void JNICALL Java_net_sf_junace_UnACE_nativeACEList
- (JNIEnv *, jobject, jstring, jobject)
- {
- cout<<"wolam Java_net_sf_junace_UnACE_nativeACEList"<<endl;
- }
- JNIEXPORT jboolean JNICALL Java_net_sf_junace_UnACE_LoadAceDll
- (JNIEnv *env, jobject)
- {
- AceDllInstance = LoadLibrary(L"UnAceV2.Dll");
- if (AceDllInstance) {
- }
- else
- throwUnsatisfiedLinkError(env, "Can't load UnAceV2.Dll");
- return AceDllInstance != NULL;
- }
Advertisement
Add Comment
Please, Sign In to add comment