salut, je cherche à génerer un fichier .dll a partir d'un programme c pour le mettre dans mon programme java. c'est la premiere fois où j'utilise visual c++. j'ai crée un projet dll dans le repertoire "source file" j'ai mon programme TestRapi.c : ************************************ #include "Test.h" #include <windows.h>
BOOL WINAPI DllMain(HINSTANCE hinstDll, DWORD fdwReason, LPVOID lpvReserved){ return TRUE; }
JNIEXPORT int JNICALL Java_Test_CeRapiInit (JNIEnv *env, jobject jtest) { return CeRapiInit(); }
*********************************************** dans le repertoire Header file j'ai le fichier Test.h
********************************************** //* DO NOT EDIT THIS FILE - it is machine generated */ #include <jni.h> /* Header for class Test */
#ifndef _Included_Test #define _Included_Test #ifdef __cplusplus extern "C" { #endif /* * Class: Test * Method: CeRapiInit * Signature: ()I */ JNIEXPORT jint JNICALL Java_Test_CeRapiInit (JNIEnv *, jobject);
#ifdef __cplusplus } #endif #endif ********************************************* aprés la compilation je ne trouve pas dans le projet le fichier .dll que je cherche. je trouve projet.ncb , projet.sln, projet.suo. est ce que vous avez une ideé ? merci
|