[ mvasicdo @ 01.11.2006. 13:00 ] @
moze li mi neko objasniti sledeci kod: Code: public class ShowMsgBox { public static void main(String args[]) throws UnsatisfiedLinkError { MessageBox(0, "Created by the MessageBox() Win32 func", "Thinking in Java", 0); } /** @dll.import("USER32") */ private static native int MessageBox(int hwndOwner, String text, String title, int fuStyle); } da li se ovo odnosi i na dll-ove koje sam ja napravio npr. u visual c++ ili samo na "winapi", kada mi se izvrsi ovaj kod izbaci mi sledecu gresku: Code: Exception in thread "AWT-EventQueue-0" java.lang.UnsatisfiedLinkError: MessageBox at Main.MessageBox(Native Method) da li mozda treba importovati odredjene klase ili nesto slicno. |