This week's book giveaway is in the General Computing forum. We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line! See this thread for details.
Hi everybody : I am workin in a client server application over an ATM network using the Winsock 2 . Is there any way i can use the .dll file and write my own java class which will interact with the ATM network . Even if i use the JNI how can i keep track of the socket which i created with C++(winsock) ... Is there anyway i can have a reference to the C++ object (socket object which i created ) Pls let me know I really want to use java
You can write a dll that acts as a bridge between your Java app and the C++ dll. You can get a reference to your JNI class and call the native methods which are implemented in this new dll. There's a reasonable coverage of JNI in the Java Tutorial at http://java.sun.com/tutorial.
Siva Jagadeesan
Ranch Hand
Joined: Oct 31, 2000
Posts: 160
posted
0
Originally posted by Jim Baiter: You can write a dll that acts as a bridge between your Java app and the C++ dll. You can get a reference to your JNI class and call the native methods which are implemented in this new dll. There's a reasonable coverage of JNI in the Java Tutorial at http://java.sun.com/tutorial.
Dear Jim : Thanx for replying to me . But I want to know whether i can have a C++ object SOCKET in my java program so i can use the native methods call on it . So i will have only one SOCKET object in my program . Pls let me know if i am now clear Thank u Siva
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.