We are using an older version of the ASN.1/C toolkit (v9), and I would like to print selected PDUs to a window in a C++/MFC application.
I know ossOpenTraceWindow()
exists but as I understand this opens a new window and I want to write to my own GUI.
The documentation for ossPrintXXX
functions talks about how they are replacements for printf
/ fprintf
and mention that calling with world==NULL
will directly call these functions. But I can't see how I can 'connect the dots'.
How can I set things up so that calling ossPrintXXX gives me some characters I can read and display in MFC, since I don't know exactly what is happening under the hood (closed source as far as I known)
note: in later versions there is a function ossPrintPDUToBuffer()
but this is not available in v9.