Hello :}
I'm writing C-based console applications under Windows NT and am trying
to find a more useful way of debugging them.
Specifically, I would like to find out the exact string being sent from
the console application to the VISA dll.  This would probably be similar
to something that NI-SPY does.  However, since the console application
is assembling the string on the fly (and therefore a lot of times %s is
sent), NI-SPY isn't very useful.
What I would like to be able to do is something like this:
// Partial C example
void main()
{
    ViSession vis;
    char buffer[256] = "\0";
    char String1[256]="\0", String2[256]="\0", SendString[256]="\0";
    ViUInt32 Count = 0;
    .
    .
    .
    sprintf(SendS
tring, "%s%s", String1, String2);  // combine the
strings to send
    StartSpy(/*whatever parameters are needed here*/);
    /* StartSpy would alert whatever (dll?  includes?) to start
recording what's being
       sent to VISA. */
    viWrite(vis, SendString, 256, &Count);
    EndSpy(buffer, /*whatever other parameters are needed.*/);
    /* buffer would then contain whatever was sent to VISA via viWrite.
        It should have the exact same contents as SendString... but this
is
        needed for more complex debugging purposes elsewhere.  */
    .
    .
    .
}
Any idea, leads, points-in-the-right-direction?
Thanks!
Scott