Partager via


DbgAssert (Windows CE 5.0)

Send Feedback

This function handles an assertion failure in a debug build.

DbgAssert displays a message box that includes the condition text, source file name, and source line number.

The user can ignore the assertion failure, debug the assertion, or force the application to exit. Thus, DbgAssert might return to the caller, depending on the user's actions.

void WINAPI DbgAssert(const TCHAR* pCondition,const TCHAR* pFileName,INT iLine);

Parameters

  • pCondition
    Pointer to a string version of a Boolean expression.
  • pFileName
    Pointer to a source file name.
  • iLine
    Line number within the source file.

Remarks

This function is available only in a debug build. Usually, DbgAssert will be called by macros, not directly from other code.

If you use a macro, DbgAssert might display a message box. If this is not acceptable in your environment, you can use DbgKernelAssert instead.

Requirements

DirectShow applications and DirectShow filters have different include file and link library requirements.

For more information, see Setting Up the Build Environment.

OS Versions: Windows CE 2.12 and later. Version 2.12 requires DXPAK 1.0 or later.
Header:

See Also

Assert Functions

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.