replace explorer.exe with a mfc application crash (kiosk mode with wince)

I wrote a mfc application for wince 4.2 net to replace the explorer.exe.

The aplication works fine if the explorer.exe started before, but if I change LOCAL_MACHINE\INIT and I don´t start the explorer the application crash.

Then I wrote s simple win32 application without MFC and everything works fine without the explorer.exe

The problem is a need the MFC library to do some things.

How can I run a MFC application without the explorer.exe? May be I need to load some libraries first?


LVL 1
juandsAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

itsmeandnobodyelseCommented:
>>>> The aplication works fine if the explorer.exe started before
The explorer.exe is responsible for installing and running the desktop. There are some 'features' in each MFC app where it communicates with the desktop (e. g. installing an icon in the taskbar when minimized) what of course would fail if there is no desktop.

What kind of MFC app is it? A dialog-based app (A) or a SDI (B) or MDI (C) app? You would need to cut all connections and dependencies to the desktop, what isn't so much difficult for (A) as this only uses a minimal part of the MFC application framework but may be very difficult for (B) and (C).

Regards, Alex
0
itsmeandnobodyelseCommented:
Note, instead of 'replacing' the explorer you can switch off all it's user interfaces by means of system policies.
0
juandsAuthor Commented:
Thanks for your reply!

Actually I solve the problem. The solution is to run the Filesys.exe instead of explorer.exe and then run my MFC app. (comment: also it need the NK.exe but this module always is started)

Thanks for your comment anyway!
 
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Smartphone Programming

From novice to tech pro — start learning today.