Adding toolhelp to Shell - linker errors. Experts?
- From: "Doug Perot" <dperot@xxxxxxxxxxxxxxxxx>
- Date: Wed, 5 Oct 2005 17:57:57 -0400
Hello all,
I've been doing alright with Platform Builder CE 5.0 for the emulator,
working on a modified shell for a custom device. My changes up to now have
worked but now I have added a call to a toolhelp.dll function in the UI
(ceshui.lib). Originally I was getting unresolved external linker errors for
CreateToolhelp32Snapshot,
Process32First, and
Process32Next
I added toolhelp.lib to the linker settings of the UI project, no help.
Now I seem to have gotten it to link in this lib by manually adding
TARGETLIBS= \
C:\WINCE500\PUBLIC\COMMON\OAK\LIB\X86\DEBUG\Toolhelp.lib \
$(TARGETLIBS)
to the sources file in C:\WINCE500\PUBLIC\SHELL\CESYSGEN.
But now I get a different linker error:
Toolhelp.lib(toolhelp.obj) : error LNK2005: _DllMain already defined in
ceshui.lib(ceshell.obj)
Does anyone know how to link toolhelp.lib into the shell, or, failing that,
how to tell it to ignore the toolhelp _DllMain?
Thank you in advance,
DP
.
- Follow-Ups:
- Re: Adding toolhelp to Shell - linker errors. Experts?
- From: Paul G. Tobey [eMVP]
- Re: Adding toolhelp to Shell - linker errors. Experts?
- Prev by Date: Re: Trouble finding file
- Next by Date: Re: Trouble obtaining virtual address from physical address...
- Previous by thread: re: Created Users is cleaned each reboot!!!
- Next by thread: Re: Adding toolhelp to Shell - linker errors. Experts?
- Index(es):
Loading