loading and invoking the method from my printer dll

hi all,

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...

[352 byte] By [pratheevana] at [2007-11-26 12:59:56]
# 1

Hi,

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.

VaRadharajana at 2007-7-7 16:59:38 > top of Java-index,Desktop,Deploying...
# 2
Hi all,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 advanceRegards,varadharajan.s
VaRadharajana at 2007-7-7 16:59:38 > top of Java-index,Desktop,Deploying...