Bruce
Mon Aug 11 20:14:34 PDT 2008
Marco:
Exes and dlls must be built for Windows CE to be compatible. Even if it is
managed code, it needs to be developed against the .NET Compact Framework.
Native exes and dlls need to be built for the correct CPU.
Putting that aside, I tried to reproduce your problem with CE 6.0 and could
not. I copied your line into my platform.bib in the MODULES section, I
ignored your missing $ and change Mypath to _FLATRELEASEDIR. That gave me
the expected error that romimage couldn't figure it out.
For the rest of this, I put an x86 dll in the _FLATRELEASEDIR and changed
the name to MyDll.dll.
I add the $ and tried again, the error was that the dll was built for x86,
not ARM.
I moved it to the FILES section, and the nk.bin was created.
The only thing that I didn't try was to add it to an x86 project.
--
Bruce Eitman (eMVP)
Senior Engineer
Bruce.Eitman AT EuroTech DOT com
My BLOG
http://geekswithblogs.net/bruceeitman
EuroTech Inc.
www.EuroTech.com
"Marco" <marco@tin.it> wrote in message
news:48a0afdc$0$40314$4fafbaef@reader5.news.tin.it...
> When I try to add an external DLL into the run-time image NK.bin, adding a
> line in project.bib like this one:
>
> MyDLL.dll (Mypath)\MyDLL.dll NK C
>
> I get this error when PB calls MakeImage: "Runtime Error! Program
> C:\WinCE600\public\common\oak\Bin\i386\romimage.exe, this application has
> requested the Runtime to terminate it in an unusual way. Please contact
> the application's support team for more information."
>
> Instead, I never get that error if I include DLLs created by PB projects.
> The one I want to include is created under a Windows for desktop (2k, XP),
> but it should be compatible (it's a tool downloaded from Internet, and it
> says it's CE compatible).