Category : afx

I’ve got a message map at the beginning of my program that looks like the following: BEGIN_MESSAGE_MAP(SoftwareDlg, CDialog) //{{AFX_MSG_MAP(SoftwareDlg) ON_WM_SYSCOMMAND() ON_WM_PAINT() ON_WM_QUERYDRAGICON() ON_WM_TIMER() ON_WM_DESTROY() … ON_COMMAND(ID_TOOLS_UPLOADDATA, UploadData) … //}}AFX_MSG_MAP END_MESSAGE_MAP() And here the function that the "ID_TOOLS_UPLOADDATA" menu option calls when clicked: void UploadData() { string apiEndpoint = "/api/stuff"; upload_data(apiEndpoint); } My problem is that ..

Read more