//flex table opened by JP

Click to See Complete Forum and Search --> : WinAPI and Java


qball
06-12-2000, 07:04 AM
I have an example of this, but couldn't find over the weekend, so....

Does anyone know a real easy way to make WinAPI calls from a Java program? I know it defeats the cross platform independence, but I need to kill a window through my Java app.

DEMENTEDEVIL
06-15-2000, 03:09 AM
Wish I did, still learning Java myself, and a lot of programming **** that comes with it.

qball
06-15-2000, 01:00 PM
Actually there exists no direct and easy way to do this through Java (unless you use Microsoft JVM and the Jdirect functionality). Basically the easiest way is to create a C++ DLL that contains the API call and then call that through Java. This of course begs the question, If one has to use C++ to do this, why even bother with Java?

But Java is platform independent and therefore native API calls break this paradigm. Iffin you believe that, then I guess we won't be doing much file IO as storage is platform dependent also.....