0

(Modifying the question)I have a windows form app in C# which calls into some C++, and I need to add logs that log to some window in visual studio(output tab or the 'immediate window' tab....I don't care which.

I had this post but none of those solutions worked..... how to log in win32 c++ to the visual studio output window?

A comment below mentions I can turn debugging on, but there is no "debug tab", there are no tabs whatsoever so I am not sure how to enable debugging in the following picture...

enter image description here

thanks, Dean

Community
  • 1
  • 1
Dean Hiller
  • 19,235
  • 25
  • 129
  • 212
  • 1
    Project + Properties, Debug tab, tick "Enable unmanaged debugging". Short from output, you can now also *debug* the C++ code, rather a better approach than writing debugging output. A console window is simple, Application tab, change Output type to "Console Application". – Hans Passant Jun 19 '12 at 02:18
  • No, that answer is independant of the subsystem in use and can be used by console/gui apps alike. Marked as a duplicate. – Deanna Jun 19 '12 at 15:45
  • really, because I of course tried those solutions but they didn't work for me :( – Dean Hiller Jun 20 '12 at 13:57
  • I don't see how to set Enable unmanaged debugging either? – Dean Hiller Jun 20 '12 at 15:58

1 Answers1

3

I don't see how to set Enable unmanaged debugging either?

On your C# EXE project, not your C++ project. Right-click the C# project, Properties, Debug tab:

enter image description here

Hans Passant
  • 922,412
  • 146
  • 1,693
  • 2,536