Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 881733
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T12:18:38+00:00 2026-05-15T12:18:38+00:00

When developing a Win32 Application (non-console application) in Visual Studio 2005, is there any

  • 0

When developing a Win32 Application (non-console application) in Visual Studio 2005, is there any way to get the same sort of output as you do from the console?

For instance, say I want to see log statements (such as I would with cout in a console application) to trace the path my program has taken in the code.

My first thought would be that this could be done through the Output tab selecting something from its “Show output from:” dropdown, when debugging but I don’t know what API I need to do this…

alt text

For example say I had the following in my windows application and wanted to know when the following function enters and exits writing the result to the Visual Studio window above.

void someFunction(void)
{
   Win32APIConsoleLog("BEGIN: someFunction()");
   // ...
   Win32APIConsoleLog("END: someFunction()");
}

Is this possible? And if so, what what libraries do I need to include and what function calls do I need to make to write out to the console window?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T12:18:39+00:00Added an answer on May 15, 2026 at 12:18 pm

    OutputDebugString.

    I assume that you want to write to the debug console, since that’s what your screenshot shows. OutputDebugString is a nop when no debugger is attached, but it allows you to log whatever you want to the debugger’s output.

    OutputDebugStringW(L"This will go to the output.\n");
    
    // or
    
    OutputDebugString("This will go to the output.\n");
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am developing a command line application that creates a full Visual Studio 11
I have developend a window application(Win32 API) in visual C++. I have to add
I'm developing a Win32 mobile application (.NET CF 2.0/3.5) that has to communicate with
I'm currently developing an application which uses the iTunes COM (Win32) to hook into
I am developing a Win32 application and I would like to use an RSA
I'm developing a win32 C++ application that needs to export data to excel spreadsheets.
I'm developing a rather complex application with both win32 and web access. Server side
I am developing an Win32 application where user logins when the application starts in
I am developing an application that needs to a host native Win32 window and
I'm developing a small OOP/RAII library that wraps Win32's mixerXXX API functions. I'm writing

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.