RE: HKLM\Init and MFC Application (further clarification)



My apologies... I left out some details from my question which (in
retrospect) might be somewhat important.

As it was generated, the MyMFCShell project from platform builder didn't
work right for me. For some reason, when the system tried to run
MyMFCShell.exe, I would get a DEBUGCHK failure in the "PageInFromROM"
function in loader.c. The message was: "Paging in from uncompressed R/O page
from XIP module -- should've never happened."

If I REMOVE the entry for MyMFCShell.exe from the .bib file, then I get to
where I was mentioning before (50 was not found messagebox).
Alternatively, if I add a "C" qualified to the .bib file for this module, I
aso get to the 50 was not found message.

I don't know if that information will be useful for figuring out what's
going on, but I'm completely without any more ideas. Again... thanks for any
help.

--
Jay Daniel


"Jay Daniel" wrote:

> I'm new to Windows CE development, so I apologize if I'm overlooking some
> very obvious things, but I'm having some difficulty in my initial attempts at
> customizing a WinCE OS image.
>
> I'm using WinCE 5.0 and Platform Builder as well as EVC++ 4.0SP4. What I've
> done is create an MFC application in EVC. I'm trying to use this as a shell
> replacement instead of explorer.exe since ultimately I'll be making a
> dedicated HMI device.
>
> I created a new platform in Platform Builder and added the options I'd need
> for my app (standard SDK, MFC, etc.). I've used this to create and export an
> SDK for EVC which is what I built my MFC application against. That builds
> and runs on the emulator from EVC.
>
> Next, I created a new project called MyMFCShell in platform builder. I
> modified the sources file and changed targettype to "NOTARGET." I created a
> MyMFCShell.reg file as follows:
>
> IF IMGMFCSHELL
> [HKEY_LOCAL_MACHINE\Init]
> "Launch50"="MyMFCShell.exe"
> "Depend50"=hex:14,00,1e,00
> ENDIF
>
> Finally, I changed postlink.bat to copy the executable from my evc output
> directory to the flat release directory, along with the .reg file.
>
> At startup, I see the kernel launching the application, but instead of
> coming up properly, I see a message box that says "50 was not found." Note
> that I DO call ::SignalStarted(_wtol(m_lpCmLine)) from InitInstance() in
> MyMFCShell. Also, if I change the launch key from Launch50 to Launch99 say,
> the message box says "99 not found." I've even tried calling
> SignalStarted(50) directly in case the command line was somehow getting
> messed up by some default behavior in CWinApp, but to no avail.
>
> Any help would be greatly appreciated.
>
>
> --
> Jay Daniel
.



Relevant Pages

  • HKLMInit and MFC Application
    ... I'm using WinCE 5.0 and Platform Builder as well as EVC++ 4.0SP4. ... done is create an MFC application in EVC. ... At startup, I see the kernel launching the application, but instead of ...
    (microsoft.public.windowsce.platbuilder)
  • Re: how can i make use of eVC++ for developing applications
    ... OS is built or you can just leave PB running while you play with eVC. ... KITL and the kernel debugger on. ... my application need the Platform builder to activate. ... Actually, when I built the OS image for the target board, I had encounter ...
    (microsoft.public.windowsce.embedded.vc)
  • Re: Windows CE .NET
    ... If the project is not a hardware driver (but just some kernel-mode software for ... Platform Builder is the downloading install from MS - downloads more then 1GB ... Do all work in eVC++, using the .VCP project file and not BUILD. ... Then test Release build from eVC++, without the debugging facilities. ...
    (microsoft.public.development.device.drivers)
  • Re: getaddrinfo() problem within MS LSP Sample for Windows CE
    ... Building with eVc 4.0, could this possibly be part of the problem? ... since the sample is designed for Platform Builder and uses the Windows CE ... > and I have added the basic logging functionality I need to report ... > because the 'AddressString' parameter is in URL form and not dotted IP ...
    (microsoft.public.windowsce.embedded.vc)
  • Re: getaddrinfo() problem within MS LSP Sample for Windows CE
    ... Building with eVc 4.0, could this possibly be part of the problem? ... since the sample is designed for Platform Builder and uses the Windows CE ... > and I have added the basic logging functionality I need to report ... > because the 'AddressString' parameter is in URL form and not dotted IP ...
    (microsoft.public.pocketpc.developer)