I'm confused. The question was specifically about the Compact Framework, which is designed for Windows CE. If you donβt have the target hardware yet, use an emulator.
In this particular case, the SDF does not execute P / Invoking for this using IMessageFilter . You can easily do the same for the desktop.
But this suggests that you simply cannot develop a CF application for targeting XP. This means that if you create your application using the full infrastructure, focusing on the desktop and expect that it will only start when you receive your CE device, you will have a big surprise. If focusing on both OSs is the design goal, then there is a lot of work to do, and most user interface elements are not passed on (I would recommend using different user interface assemblies for two purposes and a common business logic).
EDIT1
I think to more fully answer the question "can I get coredll.dll for my desktop?" the answer is a resounding no. There are many reasons why this will not work (this is in the ROM, it depends on the hardware, it is not a file, but it is fixed for execution in place, it is compiled for another OS, it can be compiled for a completely different processor, etc. )
You have a couple of options. You can try to create a desktop version of coredll.dll, which exported all the functions and proxies you need for the kernel32, user32 libraries, etc. A work tray was loaded there ( tried this ).
You can try writing code that will work for both platforms . Opportunity, but also quite a challenge.
In short, if you absolutely must not attack both, you do not want to try. Get an emulator , virtual PC or some kind of eval system and specify this.
source share