Click here to Skip to main content
16,005,038 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to call Jar files from Visual C++ Pin
George L. Jackson24-Apr-07 0:19
George L. Jackson24-Apr-07 0:19 
GeneralRe: How to call Jar files from Visual C++ Pin
Nikhil Trivedi24-Apr-07 0:37
Nikhil Trivedi24-Apr-07 0:37 
AnswerRe: How to call Jar files from Visual C++ Pin
Nibu babu thomas24-Apr-07 0:21
Nibu babu thomas24-Apr-07 0:21 
GeneralRe: How to call Jar files from Visual C++ Pin
Nikhil Trivedi24-Apr-07 0:32
Nikhil Trivedi24-Apr-07 0:32 
GeneralRe: How to call Jar files from Visual C++ Pin
Nibu babu thomas24-Apr-07 0:37
Nibu babu thomas24-Apr-07 0:37 
GeneralRe: How to call Jar files from Visual C++ Pin
Nikhil Trivedi24-Apr-07 0:43
Nikhil Trivedi24-Apr-07 0:43 
GeneralRe: How to call Jar files from Visual C++ Pin
Nibu babu thomas24-Apr-07 0:45
Nibu babu thomas24-Apr-07 0:45 
GeneralRe: How to call Jar files from Visual C++ Pin
Nikhil Trivedi24-Apr-07 3:46
Nikhil Trivedi24-Apr-07 3:46 
It didn't work. When I use debuger, it shows me the return value of the shellexecute as 2 and the value for getlasterror is the same. I dont knokw how to deal this ?

I am using the following code snippet :

HINSTANCE hInst;<br />
hInst= ShellExecute(NULL,reinterpret_cast<LPCWSTR>("open"),reinterpret_cast<LPCWSTR>("C:\j2sdk1.4.2_12\bin\java.exe"),reinterpret_cast<LPCWSTR>("-jar C:\psae.jar WORLD"),NULL,SW_SHOWMAXIMIZED);<br />

and even try with this one :

hInst= ShellExecute(NULL,reinterpret_cast<LPCWSTR>("java"),reinterpret_cast<LPCWSTR>("C:\j2sdk1.4.2_12\bin\java.exe"),reinterpret_cast<LPCWSTR>("-jar C:\psae.jar WORLD"),NULL,SW_SHOWMAXIMIZED);<br />

both shows the same error.
Error no. 2.
QuestionRe: How to call Jar files from Visual C++ Pin
David Crow24-Apr-07 4:37
David Crow24-Apr-07 4:37 
AnswerRe: How to call Jar files from Visual C++ Pin
Nikhil Trivedi24-Apr-07 18:36
Nikhil Trivedi24-Apr-07 18:36 
GeneralRe: How to call Jar files from Visual C++ Pin
David Crow25-Apr-07 2:22
David Crow25-Apr-07 2:22 
GeneralRe: How to call Jar files from Visual C++ Pin
Nikhil Trivedi25-Apr-07 21:53
Nikhil Trivedi25-Apr-07 21:53 
GeneralRe: How to call Jar files from Visual C++ Pin
Nikhil Trivedi26-Apr-07 1:43
Nikhil Trivedi26-Apr-07 1:43 
GeneralRe: How to call Jar files from Visual C++ Pin
David Crow26-Apr-07 2:32
David Crow26-Apr-07 2:32 
GeneralRe: How to call Jar files from Visual C++ Pin
Nikhil Trivedi26-Apr-07 2:02
Nikhil Trivedi26-Apr-07 2:02 
QuestionOwnerdraw tab [modified] Pin
iayd23-Apr-07 23:42
iayd23-Apr-07 23:42 
AnswerRe: Ownerdraw tab Pin
Hamid_RT24-Apr-07 3:09
Hamid_RT24-Apr-07 3:09 
QuestionActiveX on Thread Pin
CDRAIN23-Apr-07 22:58
CDRAIN23-Apr-07 22:58 
QuestionSet Text bold in edit control Pin
sireesha_sree23-Apr-07 22:41
sireesha_sree23-Apr-07 22:41 
AnswerRe: Set Text bold in edit control Pin
vibindia23-Apr-07 22:52
vibindia23-Apr-07 22:52 
AnswerRe: Set Text bold in edit control Pin
prasad_som23-Apr-07 23:17
prasad_som23-Apr-07 23:17 
GeneralRe: Set Text bold in edit control Pin
vibindia23-Apr-07 23:27
vibindia23-Apr-07 23:27 
GeneralRe: Set Text bold in edit control Pin
Rajesh R Subramanian23-Apr-07 23:31
professionalRajesh R Subramanian23-Apr-07 23:31 
GeneralRe: Set Text bold in edit control Pin
David Crow24-Apr-07 3:08
David Crow24-Apr-07 3:08 
GeneralRe: Set Text bold in edit control Pin
sireesha_sree23-Apr-07 23:26
sireesha_sree23-Apr-07 23:26 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.