Re: how can i use clipboard with Jawin?
Alex Chew <[email protected]> Fri, 17 Nov 2006 10:16:45 +0800
| Newsgroups | gmane.comp.windows.devel.jawin |
|---|---|
| Message-ID | <[email protected]> |
Hi,
I want to call a DLL with Jawin. There are two methods included in the DLL
that has been implemented and tested under Visual C++7, one of which is,
copy2Clipboard(char* html);
I try to invoke the interface with code:
FuncPtr copy2Clipboard =3D null;
copy2Clipboard =3D new FuncPtr("C:\\windows\\system32\\MyClipBoard.dll",
"copy2Clipboard");
LittleEndianInputStream leis =3D null;
NakedByteStream nbs =3D new NakedByteStream();
LittleEndianOutputStream leos =3D new LittleEndianOutputStream(nbs);
leos.writeStringUnicode("<font color=3Dred><b>html</b></font>");
copy2Clipboard.invoke("I:I:", 4, nbs, null, ReturnFlags.CHECK_NONE);
but i got an error that seems said cannot find the method copy2Clipboard,
org.jawin.COMException: 8007007f: ???????=A8????=F2??
at org.jawin.Bootstrap.loadFunction(Native Method)
at org.jawin.FuncPtr.<init>(FuncPtr.java:80)
at demos.MyDllTest.main(MyDllTest.java:188)
Would you please show me how to make it work?
thanks
alex