How to execute java exe in VC++ 2010 ?
-
hi, I want to execute java exe by passing arguments in VC++ 2010. I have tried shellExecute, but it is not working. Can any one please help me. Thanks in advance. :)
-
IICTECH wrote:
but it is not working.
Please do not expect people to guess what is happening on your system. Show the relevant portion of your code and explain what happens when you run it.
I want to integrate java with c++. I already created java exe called
IKRYSignENC.exe
. I have to pass command line arguments to execute this exe. For that,I have used shellExecute as follows
ShellExecute (NULL, "open", "D:\\IKRYSignENC.exe", "D:\\NSRM3443\\Test\\ch21\\ENC_ROOT\\IN121MTM.000" "C:\\CASM_IKRYPT_JAVA\\Support\\Inputs\\CellKeys.txt" "D:\\", NULL, SW_SHOW);
It is compiling with out any errors, but while running it is giving the error like
Loaded 'D:\IKRYSignENC.exe', Binary was not built with debug information.
Unloaded 'D:\IKRYSignENC.exe'Can any one please suggest me the correct usage of shellExecute. :)
-
I want to integrate java with c++. I already created java exe called
IKRYSignENC.exe
. I have to pass command line arguments to execute this exe. For that,I have used shellExecute as follows
ShellExecute (NULL, "open", "D:\\IKRYSignENC.exe", "D:\\NSRM3443\\Test\\ch21\\ENC_ROOT\\IN121MTM.000" "C:\\CASM_IKRYPT_JAVA\\Support\\Inputs\\CellKeys.txt" "D:\\", NULL, SW_SHOW);
It is compiling with out any errors, but while running it is giving the error like
Loaded 'D:\IKRYSignENC.exe', Binary was not built with debug information.
Unloaded 'D:\IKRYSignENC.exe'Can any one please suggest me the correct usage of shellExecute. :)
-
I want to integrate java with c++. I already created java exe called
IKRYSignENC.exe
. I have to pass command line arguments to execute this exe. For that,I have used shellExecute as follows
ShellExecute (NULL, "open", "D:\\IKRYSignENC.exe", "D:\\NSRM3443\\Test\\ch21\\ENC_ROOT\\IN121MTM.000" "C:\\CASM_IKRYPT_JAVA\\Support\\Inputs\\CellKeys.txt" "D:\\", NULL, SW_SHOW);
It is compiling with out any errors, but while running it is giving the error like
Loaded 'D:\IKRYSignENC.exe', Binary was not built with debug information.
Unloaded 'D:\IKRYSignENC.exe'Can any one please suggest me the correct usage of shellExecute. :)
I think there is a problem in the command line arguments you are passing to the executable in the ShellExecute Function. This should be one string something like: "D:\\NSRM3443\\Test\\ch21\\ENC_ROOT\\IN121MTM.000 C:\\CASM_IKRYPT_JAVA\\Support\\Inputs\\CellKeys.txt D:\\"
You talk about Being HUMAN. I have it in my name AnsHUMAN
-
I want to integrate java with c++. I already created java exe called
IKRYSignENC.exe
. I have to pass command line arguments to execute this exe. For that,I have used shellExecute as follows
ShellExecute (NULL, "open", "D:\\IKRYSignENC.exe", "D:\\NSRM3443\\Test\\ch21\\ENC_ROOT\\IN121MTM.000" "C:\\CASM_IKRYPT_JAVA\\Support\\Inputs\\CellKeys.txt" "D:\\", NULL, SW_SHOW);
It is compiling with out any errors, but while running it is giving the error like
Loaded 'D:\IKRYSignENC.exe', Binary was not built with debug information.
Unloaded 'D:\IKRYSignENC.exe'Can any one please suggest me the correct usage of shellExecute. :)
How would you run IKRYSignENC.exe outside of code?
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Show me a community that obeys the Ten Commandments and I'll show you a less crowded prison system." - Anonymous