大家好,所以这里是我的问题,因为我被困在这段代码中超过2天
我想让我的程序监视器成为一个特殊的应用程序,并等待它午餐我尝试"做和循环"但它不工作我已经检查和重新检查,我无法找到解决这个问题的方法
HWND hwnd = FindWindow(0,("my programme window name"));
do {
if(hwnd == nullptr ) { /* if the window has not beign found */
cout << "window not found!" << endl;
Sleep(1000);
system("cls");
}
}while(hwnd == nullptr);
/*******************************************************************/
starting the next code once the window of the programe has been found
Run Code Online (Sandbox Code Playgroud)
所以我的问题是我不断找到""窗口未找到!"当我首先启动我自己的程序然后午餐程序希望我尝试监控,但当我启动程序时我希望监控然后我启动我自己的程序一切正常精细
为你提供帮助---编辑问题解决了