|[solved] drawing to a GC through SWT and native code [message #638284]
||Wed, 10 November 2010 17:09
| Christian Sell
Registered: August 2010
I am creating an integrated printing solution which uses SWT to output parts of a document, and a C DLL (under Windows) to output other parts. Reason for this is that the DLL contains a word processing component which is able to render RTF.
To achieve this, I am passing the handle from the GC object over to the C DLL side. This goes well, if output is only generated from there. However, as soon as I call GC#drawString prior to calling the DLL, the output generated from there has wrong distances between lines, resulting in partially messed-up layout. This does not happen if I call other GC methods, such as drawLine.
It seems to me that the GC#drawString method is configuring the GC in a way unexpected by the DLL component. Can anybody hint on what is going on here?
[Updated on: Mon, 22 November 2010 20:05]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.01805 seconds