Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

For C++,VB Developers.

Posted on 2002-04-08
5
204 Views
Last Modified: 2010-04-02
How to detect in VC++ code that USER is debugging the code? i.e User is in NSDEV Environment debugging with F10, F11 keys etc.
0
Comment
Question by:GuruVB
5 Comments
 
LVL 1

Expert Comment

by:jmccay
ID: 6925419
Can you clirfy this question a little?  Are you looking for information regarding the Macros?  I can tell you about Visual C++.  In VC++ 5.0 and 6.0 (I haven't tried 7.0 but I assume it's the same), "_DEBUG" is defined (without the quotes) when the current program is compiled in debug mode.  If you are talking about the C++ code and not the macros, you can use this with other Preprocessor directives in the code like this:

#ifdef _DEBUG
   // put your debug code here
#else
   // put you normal code here fr Release mode
#endif

or:

#ifndef _DEBUG
   // Put your release code here
#else
   // Put you debug here
#endif

   I would look up the #ifdef/#else/#endif for information.  I hope this helps.  I don't know enough about VB to tell you what to do.
0
 
LVL 86

Accepted Solution

by:
jkr earned 100 total points
ID: 6925854
0
 
LVL 11

Expert Comment

by:griessh
ID: 6960608
Dear GuruVB

I think you forgot this question. I will ask Community Support to close it unless you finalize it within 7 days. You can always request to keep this question open. But remember, experts can only help you if you provide feedback to their questions.
Unless there is objection or further activity,  I will suggest to accept

     "jkr"

comment(s) as an answer.

If you think your question was not answered at all, you can post a request in Community support (please include this link) to refund your points. The link to the Community Support area is: http://www.experts-exchange.com/commspt/

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
======
Werner
0
 

Author Comment

by:GuruVB
ID: 6968958
I was on vacation so that I couldn't check it. I will check it and will do the needfull.
0
 
LVL 11

Expert Comment

by:griessh
ID: 6970319
GuruVB
Thanks for the feedback. I will put this on hold.

I envy you! I hope you had a great time ...

======
Werner
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article will show you some of the more useful Standard Template Library (STL) algorithms through the use of working examples.  You will learn about how these algorithms fit into the STL architecture, how they work with STL containers, and why t…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question