Re: How to run a MFC application exe on WinCE 5.0
- From: "Dean Ramsier" <ramsiernospam@xxxxxxxxxx>
- Date: Tue, 11 Oct 2005 12:29:34 -0400
Did you include MFC support in your OS image, along with whatever else your
application might need? If the app is built to load MFC dynamically, it
expects it in the OS.
One thing you can do is use the dumpbin utility on the application to view
the import libraries it is expecting. That will tell you what it is
expecting to see in the image, and give you a clue as to what you might be
missing.
--
Dean Ramsier - eMVP
BSQUARE Corporation
"Nithin U.K" <NithinUK@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:58DE88A8-C079-4CE4-946E-30CF398FEB98@xxxxxxxxxxxxxxxx
> Hi,
> Iam using Platform Builder for WinCE 5.0.
>
> Trying to acheive: I have an MFC application (an executable) which I want
> to
> run on my CEPC OS image. It has no additional dll dependency but requires
> some registry settings.
>
> My approach :
> I incorporated the application exe into the CEPC OS image by doing the
> following steps -
> 1) I added the following line in the project.bib file in the FILES section
> App.exe D:\App.exe NK
> 2) I added the following lines in the project.dat file
> root:-Directory("\"):-Directory("Windows")
> Directory("\Windows"):-File("app.exe","\Windows\app.exe")
> 3) The application requires some registry entries to be made prior to
> running it, which I did by adding entries to the project.reg file
> 4) I added the MFC catalog item to the OS image.
>
> Then, I built the image and tried it on my CE device (a x86 PC). But I get
> this error when I run the Application exe in the Windows folder of target
> device.
>
> "Cannot find 'App' (or one of its components). make sure
> the path and filename are correct and that all the required libraries
> are available."
>
> The application has no other 'private' application-specific dll
> dependency.
> The registry setting is proper as required for the application (I verified
> using Remote Registry Editor tool). What else is the problem here?
>
> Secondly, I used CEfileWiz application and built the application exe as a
> Catalog item and then, I added the application cec (Catalog) to the OS. I
> rebuilt the image but I got these errors during Makeimg:
>
> Pass 1...
> Warning: Unable to do imports from GSIOCServer.exe to KERNEL32.dll - will
> late bind
> Warning: Unable to do imports from GSIOCServer.exe to USER32.dll - will
> late
> bind
> Warning: Unable to do imports from GSIOCServer.exe to GDI32.dll - will
> late
> bind
> Warning: Unable to do imports from GSIOCServer.exe to comdlg32.dll - will
> late bind
> Warning: Unable to do imports from GSIOCServer.exe to WINSPOOL.DRV - will
> late bind
> Warning: Unable to do imports from GSIOCServer.exe to ADVAPI32.dll - will
> late bind
> Warning: Unable to do imports from GSIOCServer.exe to SHELL32.dll - will
> late bind
> Warning: Unable to do imports from GSIOCServer.exe to COMCTL32.dll - will
> late bind
> Warning: Unable to do imports from GSIOCServer.exe to oledlg.dll - will
> late
> bind
> Error: Can't find import OleUninitialize in ole32.dll
> Error: Can't find import OleUninitialize hint 224 in ole32.dll
> Error: Fatal import error in GSIOCServer.exe
> Error: Can't find import OleInitialize in ole32.dll
> Error: Can't find import OleInitialize hint 201 in ole32.dll
> Error: Fatal import error in GSIOCServer.exe
> Error: Can't find import CreateILockBytesOnHGlobal in ole32.dll
> Error: Can't find import CreateILockBytesOnHGlobal hint 96 in ole32.dll
> Error: Fatal import error in GSIOCServer.exe
> Error: Can't find import OleFlushClipboard in ole32.dll
> Error: Can't find import OleFlushClipboard hint 196 in ole32.dll
> Error: Fatal import error in GSIOCServer.exe
> Error: Can't find import OleIsCurrentClipboard in ole32.dll
> Error: Can't find import OleIsCurrentClipboard hint 203 in ole32.dll
> Error: Fatal import error in GSIOCServer.exe
> Warning: Unable to do imports from GSIOCServer.exe to OLEPRO32.DLL - will
> late bind
> Fatal error hit, exiting...
> makeimg: FATAL ERROR: Command returned non-zero exit code 1 (dec).
> makeimg: FATAL ERROR: Command returned non-zero exit code 1 (dec).
>
> WINCE - 17 error(s), 16 warning(s)
>
> Can anybody tell me where Iam going wrong? Do I have to follow any other
> approach to run an MFC application on WinCE?
.
- Follow-Ups:
- Re: How to run a MFC application exe on WinCE 5.0
- From: Nithin U.K
- Re: How to run a MFC application exe on WinCE 5.0
- Prev by Date: Re: bluetooth hands-free profile
- Next by Date: How do i put the hive on a hard disk
- Previous by thread: Re: How to run a MFC application exe on WinCE 5.0
- Next by thread: Re: How to run a MFC application exe on WinCE 5.0
- Index(es):
Relevant Pages
|