[英]How to capture ossPrint in a Windows application?
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.我们正在使用旧版本的 ASN.1/C 工具包 (v9),我想将选定的 PDU 打印到 C++/MFC 应用程序中的窗口。
I know ossOpenTraceWindow()
exists but as I understand this opens a new window and I want to write to my own GUI.我知道
ossOpenTraceWindow()
存在,但据我所知,这会打开一个新窗口,我想写入我自己的 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. ossPrintXXX
函数的文档讨论了它们如何替代printf
/ fprintf
并提到使用world==NULL
调用将直接调用这些函数。 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)我如何设置以便调用 ossPrintXXX 给我一些我可以在 MFC 中读取和显示的字符,因为我不知道引擎盖下到底发生了什么(据我所知是封闭源代码)
note: in later versions there is a function ossPrintPDUToBuffer()
but this is not available in v9.注意:在以后的版本中有一个函数
ossPrintPDUToBuffer()
但在 v9 中不可用。
Since this is a question about a commercial vendor's Tool, your question is better addressed directly to their technical support department.由于这是关于商业供应商工具的问题,您的问题最好直接向他们的技术支持部门提出。 I notice there is a knowledge base question on the OSS website that might help you in this case.
我注意到 OSS 网站上有一个知识库问题,在这种情况下可能会对您有所帮助。 Please see the following URL: https://www.oss.com/asn1/knowledge-center/asn1-c/asn1c-print-to-memory-buffer-instead-of-window.html
请查看以下网址: https : //www.oss.com/asn1/knowledge-center/asn1-c/asn1c-print-to-memory-buffer-instead-of-window.html
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.