关于jawin的一个问题,用过的人请进,在线等。。。。
I can run successfully of the demo programe:
FuncPtr msgBox = new FuncPtr("USER32.DLL", "MessageBoxW");
msgBox.invoke(0, "hello", "jawin", 0, ReturnFlags.FAIL_ON_FALSE);
but if I change the “USER32.DLL” by another dll,I receive the error message :
org.jawin.COMException: 8007007f: ???????¨????ò??
at org.jawin.Bootstrap.loadFunction(Native Method)
at org.jawin.FuncPtr.<init>(FuncPtr.java:29)
at applet.AppletTest.test_actionPerformed(AppletTest.java:96)
at applet.AppletTest_test_actionAdapter.actionPerformed(AppletTest.java:123)
at java.awt.Button.processActionEvent(Button.java:381)
at java.awt.Button.processEvent(Button.java:350)
at java.awt.Component.dispatchEventImpl(Component.java:3639)
at java.awt.Component.dispatchEvent(Component.java:3480)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:450)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:197)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:144)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:136)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:99)
I have place the dll to “c:\window\system32” and have use the “regsrv32” command to register it.
Anyone can help me?thanks!