how can I run an external program like ( word , notepad ,... )In C ?
and how can I set a certain size of the window of the external program like ( 300 * 300 ) ?
*Java*
0
Newbie Poster
Recommended Answers
Jump to Postwin32 api function CreateProcess() will let you do it, and I think it will even let you specify the screen size in the
Jump to PostWhether you can specify the new window's size and location will depend on the program you are trying to launch. Some program, apparently like Notepad.exe, do not honor such requests. In this example I created a Windows Forms program. The code below will change its initial x and y upper-left …
All 7 Replies
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
dlok
36
Newbie Poster
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
*Java*
0
Newbie Poster
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
dlok
36
Newbie Poster
Ancient Dragon
commented:
good catch :)
+36
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.