C++ Builder help needed.

Discussion in 'General Computer Support' started by ttran, Oct 29, 2009.

  1. ttran

    ttran

    Joined:
    Oct 23, 2009
    Messages:
    3
    Dear sir,

    I am using Borland C++ Builder 6, on an XP PC

    When I compiled a software unit that made reference to crtdbg file, I received the following error messages:


    /* Borland version of Microsoft CRTDBG.H header file
    This is used by MFC and ATL.
    */

    /*
    * C/C++ Run Time Library - Version 11.0
    *
    * Copyright (c) 1999, 2002 by Borland Software Corporation
    * All Rights Reserved.
    *
    */

    /* $Revision: 9.4.2.1 $ */

    #ifndef _INC_CRTDBG
    #define _INC_CRTDBG

    #ifndef __UTILCLS_H

    #include <windows.h>

    #ifdef __cplusplus
    extern "C" {
    #endif
    /* Prototypes for internal RTL helper functions: */
    void _ErrorMessage(const char *__message);
    void _ErrorExit (const char *__message);
    #ifdef __cplusplus
    }
    #endif

    /* Asserts */

    #if !defined(_DEBUG)

    #define _ASSERT(expr) ((void)0)
    #define _ASSERTE(expr) ((void)0)

    #else /* !defined(_DEBUG) */

    #define _ASSERT(a) _ASSERTE(a)
    #define _ASSERTE(expr) do { \
    if (!(expr) && __ASSERTE_Helper (#expr, __FILE__, __LINE__) == IDCANCEL) \
    ::DebugBreak(); \
    } while (0)

    /* _ASSERTE helper routine returns: MB_YES, MB_NO or MB_CANCEL
    */
    __inline int __ASSERTE_Helper(bool expr, char *file, int line)
    {
    TCHAR msg[256*2];
    ::wsprintf(msg, _T("%s failed - %s/%d"), expr, file, line);
    /* throw (msg); */
    _ErrorExit(msg);
    return 0; /* Never really gets here */
    }

    #endif /* !defined(_DEBUG) */

    #endif /* __UTILCLS_H */

    #endif /* _INC_CRTDBG */



    [C++ Error] crtdbg.h(52): E2268 Call to undefined function '_T'
    [C++ Error] crtdbg.h(52): E2034 Cannot convert 'int' to 'const char *'
    [C++ Error] crtdbg.h(52): E2340 Type mismatch in parameter 2 (wanted 'const char *', got 'int')


    I have no idea what's wrong whit it. Any help is appreciated.

    Thanks in advance

    David.
    ttran, Oct 29, 2009
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Yzordderex

    verizon web builder probs

    Yzordderex, May 30, 2004, in forum: Computer Support
    Replies:
    4
    Views:
    1,072
    Blinky the Shark
    May 31, 2004
  2. Paul

    uploading docs in geocities page builder

    Paul, Jul 30, 2004, in forum: Computer Support
    Replies:
    1
    Views:
    495
  3. Murgi

    Glossary builder needed

    Murgi, Dec 4, 2004, in forum: Computer Support
    Replies:
    5
    Views:
    1,990
  4. ttran

    Help required for C++ builder

    ttran, Oct 23, 2009, in forum: General Computer Support
    Replies:
    0
    Views:
    1,510
    ttran
    Oct 23, 2009
  5. ttran

    C++ builder help required.

    ttran, Oct 27, 2009, in forum: General Computer Support
    Replies:
    0
    Views:
    1,502
    ttran
    Oct 27, 2009
Loading...

Share This Page