11/9/2022 0 Comments Windows mfc getwindowtext![]() When checking the debug output after launching the app and pressing Button2 I consistently get:Īfter pressing Button1 and then pressing Button2 again I get:Įxception thrown at 0x00007FFA38A96F6C in MFCApplication3.exe: 0xC0000005: Access violation executing location 0x00007FFA38A96F6C.Īfter uninstalling KB5002226 I consistently get the first set of window titles. ::EnumWindows(EnumWindowsCallback, dwMyAppProId) StrWinProId.Format(_T("Process ID: %d \n"), dwMyAppProId) My thinking is that I need to use GetWindowText to find the text within the textbox and then use the SendMessage to send it to another form. char szMsg256 pWnd->GetWindowText (szMsg, sizeof (szMsg)) strcat (szMsg. WINDOWS MFC GETWINDOWTEXT WINDOWSGetWindowThreadProcessId(hwnd,
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |