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.