Better architecture for cross-platform project

Tech-Archive recommends: Speed Up your PC by fixing your registry

From: Stefan Hong (stefan_at_mosp.net)
Date: 09/25/04


Date: Sat, 25 Sep 2004 15:27:28 +0800

I am working on an application that will work on PC, pocket PC and
Smartphone. Obviously each platform must have it's own main Form
design, but I want to share program logic between them as much as possible.

I've searched the archive and found some ideas about using using
multiple project files for the same set of source files, but manually
maintain project file when adding/deleting source files is quite
error-prone, especially when it is maintained by a group of people.

Then I came up with an idea of creating an abstract class subclassing
System.Windows.Forms.Form for shared code, then creates separate
concrete class for each platform handling UI stuff. This sounds great,
until I realized that I can't use the nice form designer in VS.net
anymore. It only recognizes class subclassing from
System.Windows.Forms.From directly.

Is there any better idea to organize the project/code architecture?

Thanks,
Stefan



Relevant Pages

  • Re: Better architecture for cross-platform project
    ... would simply be for a UI that leverages the shared DLL. ... Obviously each platform must have it's own main Form ... > multiple project files for the same set of source files, ... > Then I came up with an idea of creating an abstract class subclassing ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: Compiling source code out of the blue
    ... from bugs that don't appear on Platform A when you move it to PLatform ... the project files are likely to not help you much on other ... there any standard kind of makefile, or do all compilers have a different ... You want the compiler to decide the optimization settings? ...
    (comp.lang.c)
  • Re: Will VS2008 target my CE 5.0 x86 custom platform?
    ... I have built a CE 5.0 custom platform and have exported and installed ... Everything works great using EVC 4.0 SP4. ... EVC project files every time a new C++ module is developed and added ...
    (microsoft.public.windowsce.platbuilder)