> I have a loader application which starts a perl script in a hidden
> window (do db backup an temporary files clear), wait the script which
> is a console app to finish, then start my main MFC app. I'm using
> Windows XP. The script hidden window exec has a strange side effect,
> my MFC app doesn't have the user focus and is not the active process
> when loads.
> How can I get them? Where to get them - inside the MFC app or add some
> code to the loader? Here is the main part of my loader:

Why *hide* the console app window?  Try specifying CREATE_NO_WINDOW so that
no console window is created in the first place, and see if it solves the
focus problem.

-------------
Ehsan Akhgari

Farda Technology (http://www.farda-tech.com/)

List Owner: [EMAIL PROTECTED]

[ Email: [EMAIL PROTECTED] ]
[ WWW: http://www.beginthread.com/Ehsan ]

State is the name of the coldest of all cold monsters. Coldly it lies; and
this lie slips from its mouth: "I, the state, am the people."
-Thus Spoke Zarathustra, F. W. Nietzsche




_______________________________________________
msvc mailing list
[EMAIL PROTECTED]
See http://beginthread.com/mailman/listinfo/msvc_beginthread.com for subscription 
changes, and list archive.

Reply via email to