🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #9741

Re: OutputDebugString

#9741
From: Remy Lebeau (TeamB)
Date: Sat, 12 Jun 2004 18:57
21 lines
1753 bytes
"Malcolm Smith" <mjfreelancing@optusnet.com.au> wrote in message
news:40caa841$1@newsgroups.borland.com...

> I always thought OutputDebugString did nothing in release
> builds but I have since discovered that my strings are being
> captured by debugview.exe even with a release build.

OutputDebugString() is just a Win32 API function like any other.  Just
because you need a debugger to view its output does not mean that the
function itself does not do anything when a debugger is not present.  It has
no way of knowing whether the calling application is compiled in debug mode
or not, particular since different vendors handle debug info differently.

> Looking at MSDN it says OutputDebugString does nothing
> if there is no 'application debugger' or 'system debugger'.

It does something - you just cannot see it without a debugger.


Gambit
Technical Details
Message-ID: <40cb531d$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.frii.net!newsfeed.frii.net!news.compaq.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <40caa841$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,b1f2b41f3316e268
X-Google-Attributes: gid10cc67,public
From: "Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <40caa841$1@newsgroups.borland.com>
Subject: Re: OutputDebugString
Date: Sat, 12 Jun 2004 11:57:26 -0700
Lines: 23
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 68.169.168.124
Message-ID: <40cb531d$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1087066909 68.169.168.124 (12 Jun 2004 12:01:49 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.frii.net!newsfeed.frii.net!news.compaq.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail