|
-
March 17th, 2009, 11:39 PM
#1
Need an VC++ application to execute smoothly another third part application
Dear All Experts,
I am using on third party software to generate the invoices in that input is an XML file. While generating the invoices, it will give me an error message with ok button in some times. Even though there is no problem in the script it will give me an error message, I guess it would be some memory problem. After that I will re-run the same script again it will give me the output file what I expect.
So I thought write an VC++ application which will get the input from the user (XML file and path). And it has to run the application automatically, during the execution if any error comes then it has to respond to that error (What we do is, simply we will click the message box and re-run the sames app) automatically and re-run the application till to get the output.
Experts please help me how to do this................
Thanks in Advance
-
March 18th, 2009, 06:47 AM
#2
Re: Need an VC++ application to execute smoothly another third part application
You can use EnumChildWindows or maybe EnumThreadWindows to detect the messagebox appearing and send a WM_COMMAND IDOK message to it...
http://msdn.microsoft.com/en-us/libr...97(VS.85).aspx
Nobody cares how it works as long as it works
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|