i hav to load and invoke the method from my printer dll..it has the string n would be printed in the com printer..the method to printing the string has done in the dll itself..so all i need to do is loading the dll and to invoke its method..
if anybody familiar with this do help me..
thanx in advance for ut replies...
This is possible through JNI (java native interface).
For this you should have the dll function's--'signature'.
This will be available through the ".lib" file.
So that you can pass the string n through parameters from jni functions.
Which inturn will call the dll function with the string n as its parameter.
So, you can load the dll and invoke the dll through JNI
the working will be
java code<--> c <---> printer.dll.
I need to access a serial printer through JNI.
I need printer's dll.
Through which i can send data and access the printer.
If anybody have knowledge in this help me.
thanks in advance