dcsimg
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: DEBUG vs RELEASE

  1. #1
    Join Date
    May 1999
    Location
    G day Mayt Land
    Posts
    969

    DEBUG vs RELEASE

    How do you determine if you are compiling under the debug or release

    if there any thing like?

    Code:
    if compiling under debug 
    #include "a_d.h"
    else 
    #include "a.h"
    endif

  2. #2
    Join Date
    Nov 2001
    Posts
    244

    Re: DEBUG vs RELEASE

    Try this:

    Code:
    #ifdef DEBUG
        #include "a_d.h"
    #endif
    #ifndef DEBUG
        #include "a.h"
    #endif
    or


    Code:
    #ifdef DEBUG
        #include "a_d.h"
    #else
        #include "a.h"
    #endif

  3. #3
    Join Date
    May 1999
    Location
    G day Mayt Land
    Posts
    969

    Re: DEBUG vs RELEASE

    obviously yes.....
    Thanks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)