atom feed8 messages in net.java.dev.jna.devRe: [jna-dev] Newbie can't compile Sh...
FromSent OnAttachments
W Bradford PaleySep 8, 2007 12:40 pm 
W Bradford PaleySep 9, 2007 5:39 am 
Timothy WallSep 9, 2007 12:44 pm 
W Bradford PaleySep 10, 2007 7:32 am 
Timothy WallSep 10, 2007 8:06 am 
W Bradford PaleySep 10, 2007 8:40 am 
W Bradford PaleySep 10, 2007 8:57 am 
Timothy WallSep 10, 2007 11:14 am 
Subject:Re: [jna-dev] Newbie can't compile ShapedWindowDemo
From:Timothy Wall (twal@dev.java.net)
Date:Sep 9, 2007 12:44:11 pm
List:net.java.dev.jna.dev

On Sep 8, 2007, at 3:41 PM, W Bradford Paley wrote:

Hi all,

Nice piece of work--thanks!

I downloaded ShapedWindowDemo.java and WindowUtils.java, put them into a CodeWarrior (ancient!) project, added jna.jar & examples.jar as well as the usual rt.jar as classes to link with, but keep getting:

Error : Class com.sun.jna.examples.win32.W32API. Handle not found in import. WindowsUtils.java line 68 import com.sun.jan.examples.win32.W32API.HANDLE;

This is repeated for HBITMAP, HDC, HGRN, and HWND.

I bet I'm missing something obvious--any sugestions?

Platform: Windows XP, SP2, CodeWarrior 5.1.1.1105

Don't link to jna.jar or examples.jar, since presumably that's what codewarrior is building. It's probably pulling old definitions from the jar files instead of newer ones from the sources.