Article View: borland.public.jbuilder.java.swing
Article #7557C++ DLL drawing graphics in Java AWT?
From: Johan Van Noten
Date: Thu, 18 Jan 2001 16:17
Date: Thu, 18 Jan 2001 16:17
25 lines
1935 bytes
1935 bytes
Hi colleague-developers, Java can be slow, especially for graphics. That's why the jdk1.3 contains a Java AWT Native Interface. You could create a C++ dll containing the native drawing functionality and draw on the HDC exported by the Java AWT. I have created a small test application with exactly this functionality. But... it doesn't work... Who has some experience with this? My problems: * When I try to link my C++Builder 4 dll, I receive a problem with the jawt.lib: it seems that it isn't COFF nor OMF... What library should I include to get the definition for JAWT_GetAWT? * In the dll, most of my documentation indicates that I can use the low-level windows drawing functionality. Can I also embed a standard VCL form in my dll who takes the exported HWND as a parent and then draw everything using the standard VCL? Thanks for any information you could give me... Johan Van Noten ACUNIA Vehicle Telematics
Technical Details
Message-ID:
<3a67189f_2@dnews>Path:
arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!cyclone-sf.pbi.net!63.208.208.143!feed2.onemain.com!feed1.onemain.com!newsfeeds.belnet.be!news.belnet.be!skynet.be!195.206.66.162.MISMATCH!Amsterdam.Infonet!News.Amsterdam.UnisourceCS!newsfeed-zh.ip-plus.net!news.ip-plus.net!bornews.borland.com!dnews!195.162.198.1Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,db60dfa2bf68e8a5,start X-Google-Attributes: gid111d45,public X-Google-ArrivalTime: 2001-01-18 08:32:10 PST From: "Johan Van Noten" <johan.vannoten@acunia.com> Newsgroups: borland.public.jbuilder.java.swing Subject: C++ DLL drawing graphics in Java AWT? Date: Thu, 18 Jan 2001 17:17:24 +0100 Lines: 28 Organization: ACUNIA X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 NNTP-Posting-Host: 195.162.198.1 Message-ID: <3a67189f_2@dnews> X-Trace: 18 Jan 2001 08:23:59 -0800, 195.162.198.1 Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!cyclone-sf.pbi.net!63.208.208.143!feed2.onemain.com!feed1.onemain.com!newsfeeds.belnet.be!news.belnet.be!skynet.be!195.206.66.162.MISMATCH!Amsterdam.Infonet!News.Amsterdam.UnisourceCS!newsfeed-zh.ip-plus.net!news.ip-plus.net!bornews.borland.com!dnews!195.162.198.1