Simon Mourier's Avatar
Simon Mourier's blog (1349 answers on StackOverflow) about Microsoft technologies C#, C/C++, .NET, WinRT, WinUI, COM, Interop, DirectX, Direct2D, Windows, ...
  • 🔎︎ Search
  • Categories
  • Archives
  • About Me
  • c/c++
  • c#
  • debugging
  • visual-studio

Writing to Output window from a c++ called by C#

Sep 8, 2013 See the question and my original answer on StackOverflow

You can use the OutputDebugString function.

If you want to support variable arguments (like printf), you need to add a bit more code as in this answer: How do you create a debug only function that takes a variable argument list? Like printf()

  • SmoBlog © 2010-2025 Simon Mourier. All rights reserved.
  • Privacy & Terms