HI Folks,



I have created an application using VS2005 which is a pocket pc 2003
mfc exe. I have also created a normal win32 dll (selectingwin32 smart
device project). From my application I call a function exported in the
DLL.

When I run it it gives me the following error.It does not get deploys
to the emulator.

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

"Unable to start program '%CSIDL_PROGRAM_FILES%\MYApp\MyApp.exe'

An error occured that usually indicates a currupt installation(code
0x8007007e). If teh problem persists, repair your visual studio
installation via 'Add or remove programs' in control panel.

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------



I used the dependency walker and found out that some DLLs were not
found in the system
(Commctrl.dll,coredll.dll,MMVCR70.dll,MMVCP70.dll). Is this causing
the deploy error ???



I somehow managed to find the dlls but commctrl.dll which I found was
a 16 bit one so dependency walker showed a warning sign.



Another strange thing I observed was when I just place my EXE and dll
in the wince 5.0 board my loadlibrary fails to get the handle to the
module(could not find the module) and it just skips the next lines of
code and exits the function.



My question is is there anything which I need to do extra while
creating/using a DLL in pocket pc ?

Eagerly waiting for your valuable feedback.



Regards,

JustLIkeDat

Re: Failed to deploy a Pocket pc Application with a DLL. by r_z_aret

r_z_aret
Wed May 21 13:12:53 PDT 2008

This question is getting answers in
microsoft.public.pocketpc.developer, which is a far more appropriate
newsgroup.

On Tue, 20 May 2008 23:30:06 -0700 (PDT), ggurubasavaraja@gmail.com
wrote:

>HI Folks,
>
>
>
>I have created an application using VS2005 which is a pocket pc 2003
>mfc exe. I have also created a normal win32 dll (selectingwin32 smart
>device project). From my application I call a function exported in the
>DLL.
>
>When I run it it gives me the following error.It does not get deploys
>to the emulator.
>
>-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>"Unable to start program '%CSIDL_PROGRAM_FILES%\MYApp\MyApp.exe'
>
>An error occured that usually indicates a currupt installation(code
>0x8007007e). If teh problem persists, repair your visual studio
>installation via 'Add or remove programs' in control panel.
>
>-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>
>
>I used the dependency walker and found out that some DLLs were not
>found in the system
>(Commctrl.dll,coredll.dll,MMVCR70.dll,MMVCP70.dll). Is this causing
>the deploy error ???
>
>
>
>I somehow managed to find the dlls but commctrl.dll which I found was
>a 16 bit one so dependency walker showed a warning sign.
>
>
>
>Another strange thing I observed was when I just place my EXE and dll
>in the wince 5.0 board my loadlibrary fails to get the handle to the
>module(could not find the module) and it just skips the next lines of
>code and exits the function.
>
>
>
>My question is is there anything which I need to do extra while
>creating/using a DLL in pocket pc ?
>
>Eagerly waiting for your valuable feedback.
>
>
>
>Regards,
>
>JustLIkeDat

-----------------------------------------
To reply to me, remove the underscores (_) from my email address (and please indicate which newsgroup and message).

Robert E. Zaret, eMVP
PenFact, Inc.
20 Park Plaza, Suite 478
Boston, MA 02116
www.penfact.com