2012-09-26 31 views

回答

1

Windows Mobile沒有控制檯也沒有控制檯輸出。你可以安裝一個控制檯,http://windowsmobilepro.blogspot.de/2006/05/pocket-pc-console-for-standard-input.htmlhttp://handheld.softpedia.com/get/System-Utilities/Enhancements/MS-Console-69411.shtml

但爲了調試我想用這些。

而不是printf使用DEBUGMSG或RETAILMSG。例如:

DEBUGMSG(1,(L「Function x:Lasterror was 0x%08x \ n」,GetLastError()));

您也可以稍後將調試附加到運行的應用程序,然後觀察VisualStudio輸出窗口中的調試消息。

相關問題