English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

3 answers

There is a little-mentioned old utility in JDK, might still be in current Java SDK javah.

It creates a C++ stub header of the Java classes and methods; in other words, programming level interfacing is initiated by Java but used by your Win32 app. Failing that we can always use other conduits like cmd line and COM/sockets.

2007-06-04 01:57:56 · answer #1 · answered by Andy T 7 · 0 0

I not familiar with calling Java from a C/C++ Windows program (it's possible), but you can already see an example of Java calling Windows API & other functions on Windows XP. Look in this folder:
C:\Windows \System32 \ oobe
This folder and subfolders contains the .htm and JavaScript code files used for the Windows Activation screens. The actshell.htm file contains code for loading COM objects and calling functions within the COM objects.
You can get Java to call your VC++ code by using VC++ to create COM objects, registering your COM objects in Windows, and then you use Java code to load & use the functions within your COM objects.

2007-06-04 10:34:26 · answer #2 · answered by Balk 6 · 0 0

If you are a programmer, try using XML. Webservices utilizing XML will allow a UNIX machine running java talk to a windows machine running VC++.

2007-06-04 13:25:12 · answer #3 · answered by ResourceGuy 4 · 0 0

fedest.com, questions and answers