All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jmol.multitouch.jni.JmolMultiTouchJNI.cpp Maven / Gradle / Ivy

There is a newer version: 14.31.10
Show newest version
// JmolMultiTouchDLL.cpp
//

#include "stdafx.h"
#include 
#include "JmolMultiTouchJNI.h"

BOOL APIENTRY DllMain( HANDLE hModule, 
                       DWORD  ul_reason_for_call, 
                       LPVOID lpReserved
                                         )
{
    return TRUE;
}

JNIEXPORT void JNICALL
Java_org_jmol_multitouch_jni_InstanceMethodCall_nativeMethod(JNIEnv *env, jobject obj) {
    printf("In C\n");
    jclass cls = (*env)->GetObjectClass(env, obj);
    jmethodID mid = (*env)->GetMethodID(env, cls, "callback", "()V");
    if (mid == NULL) {
        return; /* method not found */
    }
    (*env)->CallVoidMethod(env, obj, mid);
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy