Welcome to Dream.In.Code
Getting C++ Help is Easy!

Join 135,935 C++ Programmers for FREE! Get instant access to thousands of C++ experts, tutorials, code snippets, and more! There are 2,655 people online right now. Registration is fast and FREE... Join Now!




Run exe?

 
Reply to this topicStart new topic

Run exe?

galletto
28 Sep, 2007 - 08:18 AM
Post #1

New D.I.C Head
*

Joined: 21 Sep, 2007
Posts: 11


My Contributions
How do I run exe from a c++ code and make that window appear in front of the others, making the others windows inactive?
User is offlineProfile CardPM
+Quote Post

no2pencil
RE: Run Exe?
28 Sep, 2007 - 08:49 AM
Post #2

My fridge be runnin OH NOEZ!
Group Icon

Joined: 10 May, 2007
Posts: 6,433



Thanked: 64 times
Dream Kudos: 2425
Expert In: Goofing Off

My Contributions
QUOTE(galletto @ 28 Sep, 2007 - 09:18 AM) *

How do I run exe from a c++ code and make that window appear in front of the others, making the others windows inactive?

system() will actually launch an executable. You'll need to supply it with a proper path.
User is offlineProfile CardPM
+Quote Post

galletto
RE: Run Exe?
28 Sep, 2007 - 09:50 AM
Post #3

New D.I.C Head
*

Joined: 21 Sep, 2007
Posts: 11


My Contributions
QUOTE(no2pencil @ 28 Sep, 2007 - 09:49 AM) *

QUOTE(galletto @ 28 Sep, 2007 - 09:18 AM) *

How do I run exe from a c++ code and make that window appear in front of the others, making the others windows inactive?

system() will actually launch an executable. You'll need to supply it with a proper path.

OK! But how I can do all windows inactive and show my exe in front of them? Is there some command to do this in C++?
User is offlineProfile CardPM
+Quote Post

jjhaag
RE: Run Exe?
28 Sep, 2007 - 11:47 AM
Post #4

me editor am smartastic
Group Icon

Joined: 18 Sep, 2007
Posts: 1,789



Thanked: 1 times
Dream Kudos: 775
Expert In: C,C++

My Contributions
not in strict c++ - you probably want to look at visual c++.

however, since it's the last window opened, the exe should wind up on top. have you tried doing this yet?

-jjh
User is offlineProfile CardPM
+Quote Post

galletto
RE: Run Exe?
28 Sep, 2007 - 12:26 PM
Post #5

New D.I.C Head
*

Joined: 21 Sep, 2007
Posts: 11


My Contributions
QUOTE(jjhaag @ 28 Sep, 2007 - 12:47 PM) *

not in strict c++ - you probably want to look at visual c++.

however, since it's the last window opened, the exe should wind up on top. have you tried doing this yet?

-jjh


If I stay watching the open windows, my window open on top. But if I typing in the browser (for ex) the window appears behind. I know that its is expected, but I want to stop the operations in all windows, and my window comes to front. Is this possible?

Tks
User is offlineProfile CardPM
+Quote Post

no2pencil
RE: Run Exe?
28 Sep, 2007 - 12:34 PM
Post #6

My fridge be runnin OH NOEZ!
Group Icon

Joined: 10 May, 2007
Posts: 6,433



Thanked: 64 times
Dream Kudos: 2425
Expert In: Goofing Off

My Contributions
Are you asking about window focus?
User is offlineProfile CardPM
+Quote Post

jjhaag
RE: Run Exe?
28 Sep, 2007 - 12:36 PM
Post #7

me editor am smartastic
Group Icon

Joined: 18 Sep, 2007
Posts: 1,789



Thanked: 1 times
Dream Kudos: 775
Expert In: C,C++

My Contributions
is this in c++ or vc++? there are some ways of doing it through the windows API, based on a quick google search, but not in standard c++.

-jjh
User is offlineProfile CardPM
+Quote Post

galletto
RE: Run Exe?
2 Oct, 2007 - 06:15 AM
Post #8

New D.I.C Head
*

Joined: 21 Sep, 2007
Posts: 11


My Contributions
QUOTE(no2pencil @ 28 Sep, 2007 - 01:34 PM) *

Are you asking about window focus?


Exactly!
User is offlineProfile CardPM
+Quote Post

no2pencil
RE: Run Exe?
2 Oct, 2007 - 08:02 AM
Post #9

My fridge be runnin OH NOEZ!
Group Icon

Joined: 10 May, 2007
Posts: 6,433



Thanked: 64 times
Dream Kudos: 2425
Expert In: Goofing Off

My Contributions
FindWindow and BringToTop API functions.
User is offlineProfile CardPM
+Quote Post

Reply to this topicStart new topic
Time is now: 12/1/08 08:30AM

Live C++ Help!

C++ Tutorials

Reference Sheets

C++ Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month