0

I'm running a exe file that has cprintf calls in one of its DLLs, the exe is GUI application, I'm looking for a method to get the output of the cprintf calls.

Thanks.

3
  • 1
    I don't know, what cprintf is. If you are referring to the standard printf instead, simply call AllocConsole and you will see the output. Commented Jun 30, 2019 at 14:58
  • I don't have access to the code. Its compiled program Commented Jun 30, 2019 at 15:39
  • From the docs: "If the calling process creates a child process, the child inherits the new console." Commented Jun 30, 2019 at 18:20

1 Answer 1

1

This was solved by loading DLL on runtime that called AllocConsole() in DLLMain.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.