Hallo,
Ben nu beetje bezig met Java Native Interface. Ik heb een tutorial gevonden om de basis van deze opties te kunnen leren:
http://java.sun.com/docs/books/tutorial/native1.1/
Alleen loop ik vast bij het aanmaken van een .dll in windows. Ze zeggen dat ik de volgende code moet gebruiken in Microsoft Visual C++ studio.
--
On Microsoft Windows, the following command builds a dynamic link library hello.dll using Microsoft Visual C++ 4.0:
cl -Ic:\java\include -Ic:\java\include\win32
-LD HelloWorldImp.c -Fehello.dll
Of course, you need to specify the include path that corresponds to the setup on your own machine.
--
Kan ik deze library ook op een andere manier aanmaken? Met een command line ofzo? Of met Bloodshed Dev-C++? Zo ja, hoe dan?
Alvast tnx
Rappas
Ben nu beetje bezig met Java Native Interface. Ik heb een tutorial gevonden om de basis van deze opties te kunnen leren:
http://java.sun.com/docs/books/tutorial/native1.1/
Alleen loop ik vast bij het aanmaken van een .dll in windows. Ze zeggen dat ik de volgende code moet gebruiken in Microsoft Visual C++ studio.
--
On Microsoft Windows, the following command builds a dynamic link library hello.dll using Microsoft Visual C++ 4.0:
cl -Ic:\java\include -Ic:\java\include\win32
-LD HelloWorldImp.c -Fehello.dll
Of course, you need to specify the include path that corresponds to the setup on your own machine.
--
Kan ik deze library ook op een andere manier aanmaken? Met een command line ofzo? Of met Bloodshed Dev-C++? Zo ja, hoe dan?
Alvast tnx
Rappas