Different DLL names- same interface
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Alexander_F
Posted On:   Sunday, November 11, 2001 05:47 AM

Hi all! I have two wrapper classes for native functions with exactly the same signatures. I compiled two DLL, now how can i be sure, that appropriate implementation is executing ? public final class Test1{ public Test1(){}; public native int doIt(int,String); public native String getIt(String,String); } public final class Test2{ public Test2(){}; public native int doIt(int,String); public native String getIt (String,String); } DRIVER........... System.loadlibrary("test1"); System.loadlibrary("test2"); Te   More>>

Hi all!

I have two wrapper classes for native functions with exactly the same signatures.

I compiled two DLL, now how can i be sure, that appropriate implementation is executing ?

public final class Test1{

public Test1(){};

public native int doIt(int,String);

public native String getIt(String,String);

}





public final class Test2{

public Test2(){};

public native int doIt(int,String);

public native String getIt
(String,String);

}



DRIVER...........

System.loadlibrary("test1");

System.loadlibrary("test2");

Test1 test1 = new Test1();

Test2 test2 = new Test2();

int res1= test1.doIt(5,"balbla");

int res2= test2.doIt(5,"blabla");

String strRes1= test1.getIt
("bububu","blabla");

String strRes2=test2.getIt("blabla","bububu");



where it is defined, that test1.dll
links with Test1 class and
test2.dll with Test2 class?

Thanks

   <<Less
About | Sitemap | Contact