Re: Tracing in MSVC++

>
> Have you tried to use the HTTrace_setCallback(...) to register your trace
> function?
>
> Henrik
> --

here is an example for a trace callback that send the output to the debug
window:

    PRIVATE int trace_callback(const char * fmt, va_list pArgs)
    {
        char err[1024];
        int ret;

        ret = _vsnprintf(err, sizeof(err), fmt, pArgs);
        OutputDebugString(err);
        return ret;
    }

    main()
    {
        ...

        HTTrace_setCallback(trace_callback);

        ...
    }


-- Raffaele

Received on Thursday, 24 June 1999 16:56:46 UTC