Adding toolhelp to Shell - linker errors. Experts?



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


.


Loading