sharing code between a WinCE and windows application
-
I have an MFC application that I need to maintain both for Windows and Windows CE (all the various flavors of both Pocket PC and HPCPro). I wrote it for the PC first using VC++ 6.0. I need to port it to CE (I'm using eVC++ 3.0 for that) but I don't want to have to maintain two sets of code. I've written for CE before so I know I'll have to deal with unicode, function parameter differences, etc. I figure I can just #ifdef the differences that can't be solved generically. But I'm having problems with the resource files. I don't want to have to rebuild all the dialogs and controlls on the CE side....and also the resource ID numbering would then be out of sync. So, I've heard that the resource file format is compatible between VC++6 and eVC++3 so I copied the resource files(s) to the CE project, but am getting resource compile errors like: error RC2111 : invalid control type, error RC2113 : END expected in dialog, and error RC2135 : file not found: 1002. What project files and resources are shareable between the two projects? Has anyone done something like this before? majoob
-
I have an MFC application that I need to maintain both for Windows and Windows CE (all the various flavors of both Pocket PC and HPCPro). I wrote it for the PC first using VC++ 6.0. I need to port it to CE (I'm using eVC++ 3.0 for that) but I don't want to have to maintain two sets of code. I've written for CE before so I know I'll have to deal with unicode, function parameter differences, etc. I figure I can just #ifdef the differences that can't be solved generically. But I'm having problems with the resource files. I don't want to have to rebuild all the dialogs and controlls on the CE side....and also the resource ID numbering would then be out of sync. So, I've heard that the resource file format is compatible between VC++6 and eVC++3 so I copied the resource files(s) to the CE project, but am getting resource compile errors like: error RC2111 : invalid control type, error RC2113 : END expected in dialog, and error RC2135 : file not found: 1002. What project files and resources are shareable between the two projects? Has anyone done something like this before? majoob
OK, I pretty much have it figured out, and am currently sharing code and resource files between a CE eVC++3.0 project and a PC VC++6.0 project. It is slick...everything is in the same project directory. The resource file errors I was getting was from context-sensitive help incompatibility. Post a reply if you are interested in the details of how I did this.