Category : mfc

I have programmed an MFC application with Visual studio, and now I want to fill out a word preset with data, I generated in my MFC application. I already red the following article: https://docs.microsoft.com/en-us/previous-versions/office/troubleshoot/office-developer/automate-word-mail-merge-using-visual-c-mfc But I can’t add any library as stated in step 9 of the above article, when I try to set up ..

Read more

I don’t understand this C26485 warning I receive. My code is an exception handler: catch (CDBException* e) { TCHAR szError[_MAX_PATH]; e->GetErrorMessage(szError, _MAX_PATH); AfxMessageBox(szError); } It is saying: Expression szError: No array to pointer decay (bounds.3). Both GetErrorMessage and AfxMessageBox are flagging this. It doesn’t make sense to me. Thanks for your help. Source: Windows Questions ..

Read more

I have two MFC applications. The first starts up 24 instances of the other application using the below code, passing a string representation of window handle of the first window to the second. void DispatchOnTimer(HWND hwnd, UINT id) /*************************************************************/ /* * Routine called every 5 seconds to see if any new images. Only * spawn ..

Read more