W3C home > Mailing lists > Public > www-lib@w3.org > April to June 1999

Re: Tracing in MSVC++

From: Raffaele Sena <raff@nuvomedia.com>
Date: Thu, 24 Jun 1999 13:56:57 -0700
Message-ID: <006801bebe84$19163980$52c0a8c0@nuvomedia.com>
To: "Will Sargent" <wsargent@best.com>, <www-lib@w3.org>, "Henrik Frystyk Nielsen" <frystyk@w3.org>
>
> 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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 23 April 2007 18:18:29 GMT