Re: Same codebase for Windows CE 6 and desktop (Windows XP)?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Thomas,

Daniel Moth's "Sharing Assets" paper and presentations are the classic reference:
http://www.danielmoth.com/Blog/2008/06/sharing-assets-between-net-compact.html

Ginny Caughey
Device Application Development MVP

"Thomas Steinmaurer" <t.steinmaurer_dontbugmewithspam@xxxxxxxxxxx> wrote in message news:#St3j3UqJHA.4372@xxxxxxxxxxxxxxxxxxxxxxx
Hi Carsten,

"Thomas Steinmaurer" <t.steinmaurer_dontbugmewithspam@xxxxxxxxxxx> schrieb im Newsbeitrag news:etysDxTqJHA.4516@xxxxxxxxxxxxxxxxxxxxxxx
Hello,

we are writing an .NET based application for Windows CE 6. This includes a graphical user interface, reading data from the CAN bus, storing data in SQL CE, ...

The primary target platform is Windows CE 6 with the .NET compact framework, but ideally, the same application should also run on the desktop (Windows XP) under the .NET framework, especially the graphical user interface part for displaying measurement data. Although reading data won't be from the CAN bus then, but from the COM port ...

Basically, are there any ideas, best practices for having one code base and two target platforms (embedded and desktop)? How is that handled in Visual Studio, ...


in my opinion, it is not so difficult to develop a program which runs on both platform with the same case.

At first, you should know that you primary develop for the .Net Compact Framework, which is just a subset of the Desktop-version. Visual Studio handles is as an solution for smart devices.

If you just use 'plain' .Net-code without any platform invokes or stuff like that, you program should run on the desktop without any problems. If you use libraries for a special hardware that it becomes diffifcult.
If you have to use platform invokes, you should try to substitute the Api calls for coredll.dll to Api calls for gdi32.dll or user32.dll, etc.

If you may have any questions, fell free to ask.

In a first step, it's all about basics. For example, from a development environment POV, how can I handle two platforms in Visual Studio? Two projects/solutions including the same source?

Are there any "getting starting guides" for developing for two platforms possibly with the same code base?


Thanks,
Thomas

.



Relevant Pages

  • Re: Same codebase for Windows CE 6 and desktop (Windows XP)?
    ... This includes a graphical user interface, reading data from the CAN bus, storing data in SQL CE, ... ... The primary target platform is Windows CE 6 with the .NET compact framework, but ideally, the same application should also run on the desktop under the .NET framework, especially the graphical user interface part for displaying measurement data. ... Visual Studio handles is as an solution for smart devices. ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: [Info-ingres] Building DBD::Ingres for ActiveState Perl
    ... - nmake from http://download.microsoft.com/download/vc15/patch/1.52/w95/en-us/nmake15.exe ... Copy the vcvars32.bat script from the C++ distribution to the DBD::Ingres directory, and the msvcrt.lib library from the .NET distribution to the lib directory of the Platform SDK distribution. ...
    (comp.databases.ingres)
  • Re: Same codebase for Windows CE 6 and desktop (Windows XP)?
    ... This includes a graphical user interface, reading data from the CAN bus, storing data in SQL CE, ... ... The primary target platform is Windows CE 6 with the .NET compact framework, but ideally, the same application should also run on the desktop under the .NET framework, especially the graphical user interface part for displaying measurement data. ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: Cannot include windows.h....
    ... question whether or not platform sdk is installed.... ... In fact everything was working fine until I tried to install ... Visual Studio settings. ...
    (microsoft.public.vc.mfc)
  • Debugging WinCE platform with Visual Studio 2008
    ... platform, ... I have built an emulator version and Visual Studio ... run/debug problem except this time it gives me an immediate error message ... if it succeeds at all? ...
    (microsoft.public.windowsce.embedded)