简体   繁体   English

调试ActiveX控件的输出

[英]debug output from an ActiveX control

I'm developing an ActiveX control and I'd like to throw some debug output to the console area in tstcon32 like other controls are doing. 我正在开发ActiveX控件,我想像其他控件一样在tstcon32的控制台区域中放置一些调试输出。 What system call is doing that? 哪个系统调用正在执行此操作?

stdout doesn't seem to be it stdout似乎不是

Are you thinking of ATLTRACE2 ? 您在考虑ATLTRACE2吗? "Reports warnings to an output device, such as the debugger window, according to the indicated flags and levels." “根据指示的标志和级别,将警告报告给输出设备,例如调试器窗口。”

最有可能使用的是OutputDebugString: http : //msdn.microsoft.com/zh-cn/library/aa363362%28VS.85%29.aspx

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM