|
|
> Debug and Release Server Versions > Outputting Debug Dialog Messages Outputting Debug Dialog MessagesAs described in the section on Controlling Debug Output, when linking to the debug ClientProtector server you can easily control two dimensions of the debug information which is output:
You control this by using the values defined in the CPDEBUGFLAGS enumeration exposed by the ClientProtector COM server. These values are simply combined using bit-wise OR operators to achieve the desired effect and passed in the "DebugFlags" parameter of the StartUp function call. To control debug dialog messages, four enumerations can be used (in combination with any others):
For example, if we only wanted detailed dialog debug messages output (which pauses processing as each dialog is displayed) we would pass DBG_DLG_DETAIL in the DebugFlags parameter of the StartUp call. Or, if we wanted to output only coarse dialog messages but detailed log-file messages we would combine them with a bit-wise or operator as in : (DBG_DLG_DETAIL | DBG_LOG_DETAIL). If we simply want to output all detailed information using every method, we can just use the DBG_ALL_DETAIL value. An example call might look like this (C++ code): // initialize the ClientProtector
and Start it up Dialog debug messages are different from the other two methods because processing pauses until you dismiss each dialog. Whereas, the other two methods simply output the message and continue processing. |