問題タブ [jni4net]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
java - jni4netを使用してJavaでネイティブDLL関数を使用し、System.BadImageFormatExceptionを取得する
jni4net
JavaでDLL関数を使用しています。
jni4net-0.8.6.0-bin を使用して、次のコマンドを使用してコンパイルします。
.\proxygen.exe "D:\sampledlls\sample_interface.dll" -wd "D:\hope"
このコマンドを実行すると、次のエラーが発生します。
また、JavaでDLL関数を使用するためにJNAライブラリを使用しました。しかし、その中でも次のエラーが発生しています。
JNAのコードは次のとおりです。
これは、native.dll です。
DLL をロードするにはどうすればよいですか?