i am trying to get mspaint to show the 'open' dialog..
what is wrong? it works fine when i use "notepad" as the cmd line, "Notepad" as the class and 2 as the menu option id.Code:WinExec("mspaint",SW_SHOW); HWND hpaint = FindWindow("MSPaintApp",0); SendMessage(hpaint,WM_COMMAND,57601,0);