Hello. How can i use SendMessage to "press" other program's button? I don't know other program's button's ID but there is only one button in that program. I searched MSDN and found something. I tried this piece of code:
Line 8: error C2664: 'void CWnd::GetDlgItem(int,HWND *) const' : cannot convert parameter 1 from 'HWND' to 'int'
Line 8: error C2514: 'HWND' : class has no constructors
Line 9: error C2660: 'CWnd:: SendMessageA' : function does not take 4 arguments