2013-02-23 1 views
0

포함되어 있습니다. 하지만 어쨌든 showWindowgetConsoleWindow를 호출 할 수 없습니다 것 같다.'이 ShowWindow'<windows.h> 발견되지 식별자는 내 프로젝트 <code><windows.h></code>을 포함했다

#ifdef _WIN32 
    #include <windows.h> 
    bool consoleButtonCallback(void* but); 
#endif 
/*tons of code here*/ 
    /* ... */ 
#ifdef _WIN32 
    bool consoleButtonCallback(void* but) 
    { 
     Opencv_Button* button = (Opencv_Button*)but; 
     bool visible = false; 
     if(button->click%2!=0) 
     { 
      button->val("Hide console"); 
      showWindow(getConsoleWindow(), 1); //'showWindow': identifier not found 

     } 
     else 
     { 
      button->val("Show console"); 
      showWindow(getConsoleWindow(), 0); //'showWindow': identifier not found 
     } 
     return true; 
    } 
#endif 

내 파일에 뭔가를 추가해야합니까?

답변

관련 문제