2013-08-29 72 views

回答

5

您需要添加:

#include <..\um\debugapi.h> 

樣品電話:

App::App() 
{ 
    InitializeComponent(); 
    Suspending += ref new SuspendingEventHandler(this, &App::OnSuspending); 
    OutputDebugString(L"App initialized\n"); 
} 
+0

謝謝!爲了將來的參考,我怎樣才能找出給定函數調用需要包含哪些內容?我無法根據這個文檔弄清楚它:http://msdn.microsoft.com/en-us/library/aa363362%28VS.85%29.aspx –

+0

只需看看SDK頭。 –

+2

另外我沒有得到這個編譯:錯誤C1189:#error:「沒有目標體系結構」 –