jnative + external dll (PSRemoteLib) *** SOLVED
in
Integration and Hardware
•
2 years ago
im trying to use an externall dll provided with an app to make calls from another app.
i followed the hack paga about jna but im receiving the error:
cannot find a class or type named "org.xvolks.jnative.util.PSRemoteLib" where PSRemoteLib is the name of the dll and the name of mi class
i followed the hack paga about jna but im receiving the error:
cannot find a class or type named "org.xvolks.jnative.util.PSRemoteLib" where PSRemoteLib is the name of the dll and the name of mi class
- package org.xvolks.jnative.util;
import org.xvolks.test.bug.*;
import org.xvolks.jnative.util.ole.*;
import org.xvolks.jnative.util.windows.hooks.*;
import org.xvolks.jnative.pointers.*;
import org.xvolks.jnative.logging.*;
import org.xvolks.jnative.com.interfaces.*;
import org.xvolks.test.windows.trayicon.*;
import org.xvolks.jnative.util.mapi.*;
import org.xvolks.jnative.com.typebrowser.business.export.*;
import org.xvolks.jnative.misc.*;
import org.xvolks.jnative.util.mapi.structs.*;
import org.xvolks.jnative.misc.basicStructures.*;
import org.xvolks.test.com.*;
import org.xvolks.jnative.util.windows.hotkey.*;
import org.xvolks.jnative.pointers.memory.*;
import org.xvolks.jnative.misc.registry.*;
import org.xvolks.test.windows.*;
import org.xvolks.jnative.exceptions.*;
import org.xvolks.jnative.com.typebrowser.gui.*;
import org.xvolks.jnative.com.utils.*;
import org.xvolks.jnative.util.windows.*;
import org.xvolks.jnative.util.constants.winuser.*;
import org.xvolks.test.callbacks.*;
import org.xvolks.jnative.com.typebrowser.gui.panels.*;
import org.xvolks.jnative.*;
import org.xvolks.jnative.util.win32session.*;
import org.xvolks.test.callbacks.linux.*;
import org.xvolks.jnative.util.constants.*;
import org.xvolks.jnative.com.typebrowser.business.*;
import org.xvolks.test.*;
import org.xvolks.jnative.misc.machine.*;
import org.xvolks.jnative.util.*;
import org.xvolks.jnative.util.windows.structures.*;
import org.xvolks.jnative.com.*;
import processing.core.*;
public class PSRemoteLib extends PApplet{
public static final String PSRemoteLib = "PSRemoteLib.dll";
private static JNative p5PingCamera;
//ReleaseShutter(60, filename, sizeof(filename));
public static int p5PingCamera() throws NativeException, IllegalAccessException {
if(p_PingCamera == null){
p_PingCamera = new JNative(PSRemoteLib,"PingCamera");
p_PingCamera.setRetVal(Type.INT);
}
nANT_Init.invoke();
return nANT_Init.getRetValAsInt();
}
}
1