locked
Converting Programs from PC to Pocket PC RRS feed

  • Question

  • Hi,  I made a program in VB for PC, coding using .net framework.  When I try to transfer my code to wm2003se or wm5.0; it gives me various errors in my code, yet in the pc code it compiles and runs fine.  I was wondering are there any major differences in VB code from PC to PPC, or is there an easy way to convert a program I wrote, with sorce code, to pocket pc?

    Thanks,
    Nick

    Tuesday, December 6, 2005 2:37 AM

Answers

  • Unfortunately, there is no magic converter. While programming language is exactly the same (in fact, NETCF shares compilers with desktop), NETCF is a subset of a full framework with only some APIs available. So, you have to go through all the errors and fix them by removing/replacing/rewriting code which uses APIs missing on NETCF. In most cases practical approach would be to redo UI from scratch and reuse business logic the best you can. The good news here – porting back to the desktop is way easier. In fact, some NETCF applications will just run on desktop as is.

    Tuesday, December 6, 2005 5:00 AM