🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.api
Article #2036

Re: how to call Win32 API in Java?

#2036
From: Stefan Bouynov
Date: Fri, 29 Jun 2001 07:35
17 lines
1423 bytes
You will probably have to use the Runtime.exec method. It allows you to
start external process and get a handle to the process which is very helpful
(you can deal the process' output or destroy the process at any time). If
you can't start the API from the command line (which is true, if Im not
mistaken), you will probably have to write native code, calling the API, and
then call the executable in the Runtime.exec().
Example:

Process apiCall = Runtime.getRuntime().exec("callingapi.exe");

Regards,
Stefan

"Alphone" <silfong@163.net> wrote in message news:3b3c0a9c_1@dnews...
> ?
>
>
Technical Details
Message-ID: <3b3c207f_2@dnews>
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!isdnet!newsfeed.online.be!newsfeed01.sul.t-online.de!t-online.de!dnews
References: <3b3c0a9c_1@dnews>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1089d0,e636af53d9dc8059
X-Google-Attributes: gid1089d0,public
X-Google-ArrivalTime: 2001-06-28 23:39:33 PST
From: "Stefan Bouynov" <bouynov@yahoo.com>
Newsgroups: borland.public.jbuilder.java.api
References: <3b3c0a9c_1@dnews>
Subject: Re: how to call Win32 API in Java?
Date: Fri, 29 Jun 2001 09:35:46 +0200
Lines: 19
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: 212.56.7.50
Message-ID: <3b3c207f_2@dnews>
X-Trace: dnews 993796223 212.56.7.50 (28 Jun 2001 23:30:23 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!isdnet!newsfeed.online.be!newsfeed01.sul.t-online.de!t-online.de!dnews