Components on the PocketPC

N

Neb

Hello,

I'm starting to write for the Pocket PC. My first task is to translate
my current Windows components to Pocket components. Right on the
start, I can't reference a Windows component in my Pocket project, as
VS2005 is telling me.

My question: is it possible to have a common component project so that
I don't need two versions of the same code (one for the Windows, on for
the Pocket) ? For example, if I need to update the component, I don't
want to end up updating two times in two components that contains the
same code. I thought code re-use would be great since we're in .Net.
But it seems that the compact framework is not so close to the Windows
framework.

Thanks for the info,

Neb
 
T

Tim Wilson

If you compile the code against the compact framework then it will be
"retargeted" to the full framework when run on the desktop. So the trick is
to create the component as a smart device project and limit yourself to
classes, etc. that exist in both frameworks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top