FILE: JWindow Demonstrates How to call Win32 APIs from JavaID: Q177162
|
The JWINDOW sample illustrates how to call Win32 APIs from a Java application. This sample contains a single class called JWindow which basically creates a Window by using the Win32 API CreateWindow and displays "Hello JWindow" in the client area by processing the WM_PAINT in the WndProc. This sample illustrates how to use the @dll.import directives to invoke a Win32 DLL function from Java, callbacks, and nested struct types.
The following file is available for download from the Microsoft
Software Library. Click the file name below to download the file:
JWindow.exe
For the latest Knowledge Base articles and other support information on Visual J++ and the SDK for Java,
please see the following pages on the Microsoft Technical Support site:
http://support.microsoft.com/support/visualj/
http://support.microsoft.com/support/java/
Additional query words: J/Direct Win32 directives
Keywords : kbsample kbSDKJava300 kbSDKJava310 kbSDKJava320
Version : WINDOWS:2.0
Platform : WINDOWS
Issue type :
Last Reviewed: July 26, 1999