juands
asked on
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?
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?
Note, instead of 'replacing' the explorer you can switch off all it's user interfaces by means of system policies.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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