[問題] VC++ SetTimer函數如何呼叫其他函數

作者: rul3nk41   2017-05-26 17:28:05
開發平台(Platform): (Ex: Win10, Linux, ...)
Visual Studio2013
問題(Question):
不好意思,小弟在網路上找到SetTimer的範例檔案
執行後測試成功,想要修改讓SetTimer去呼叫其他函數執行,修改之後發生錯誤
程式抓不到函數資料
想請各位大大幫小弟看一下程式是錯在哪裡還是說SetTimer不能這樣子呼叫函數
謝謝大家
預期的正確結果(Expected Output):s
可用SetTimer執行同一頁程式碼檔案的函數
錯誤結果(Wrong Output):s
http://imgur.com/a/84JWp
作者: aiwhat   2017-05-26 18:26:00
把 hello 放到 TimeProc 上面呼叫 hello 要加小括號 hello()還有 hello() 沒回傳東西給 cout 印

Links booklink

Contact Us: admin [ a t ] ucptt.com