CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Oct 2004
    Posts
    1

    Thumbs up 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

  2. #2
    Join Date
    Jun 2002
    Location
    Stockholm, Sweden
    Posts
    1,641

    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
  •  





Click Here to Expand Forum to Full Width

Featured