- Aug 12, 2014
- 522
- 3
- 81
Hello,
To finish a Java program I'm writing, I think that I need to call on the Windows API.
I'm assuming that the API gives developers a clean interface to the windows environment.
What I want to do exactly is open a window that will prompt the user to enter a file from non-volatile memory to be uploaded so that I can instantiate a new object whose instance variable will be the file that the user uploaded.
We've all seen the upload window that I'm talking about. It's the same window that pops up whenever you upload anything to the internet.
How do I get my Java program to call on the Windows API to do this?
I'm running Windows 7. Do I automatically have the Windows API on my machine as part of the OS, or is this something that I need to download?
In general, how would you interact with any API using any program written in an arbitrary language?
Thanks.
To finish a Java program I'm writing, I think that I need to call on the Windows API.
I'm assuming that the API gives developers a clean interface to the windows environment.
What I want to do exactly is open a window that will prompt the user to enter a file from non-volatile memory to be uploaded so that I can instantiate a new object whose instance variable will be the file that the user uploaded.
We've all seen the upload window that I'm talking about. It's the same window that pops up whenever you upload anything to the internet.
How do I get my Java program to call on the Windows API to do this?
I'm running Windows 7. Do I automatically have the Windows API on my machine as part of the OS, or is this something that I need to download?
In general, how would you interact with any API using any program written in an arbitrary language?
Thanks.