473,385 Members | 1,465 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Smart Device and Windows XP code reuse

I am writing for both Windows XP and Pocket PC an application that implements the same behavior. In the architecture design I am using several foundation libraries for better code reuse. The libraries are intended to work within the limits of the Compact framework so I can write a single source for both applications
My problem is that I can't find a way to make 2 compilation libraries for the Smart Device and the windows XP. I tried using 2 separate projects and use the same files but the IDE copied the files in to the new project folder instead of using the original files

Is there a better way to do it
Am I doing something wrong when "Adding an Existing Item" to the project

Daniel.
Nov 16 '05 #1
2 1458
Hi Daniel:

--
"Daniel Granatshtein" <Da*****@logi-tag.com> wrote in message
news:C0**********************************@microsof t.com...
I am writing for both Windows XP and Pocket PC an application that implements the same behavior. In the architecture design I am using several
foundation libraries for better code reuse. The libraries are intended to
work within the limits of the Compact framework so I can write a single
source for both applications.

I'm assuming you are aware of this but just want to make sure.. There is a
lot of functionality not supported in the CF that's on the full framework,
hence the name Compact Framework. The work done at www.opennetcf.org
bridges much of this gap and is nothing short of amazing and they deserve
sainthood. Nonetheless, you are going to have to either make sure that your
code doesn't try to reference anything that's not available or you'll have
to do some conditional compilation - the bottom line is that it's possible
but may end up being more work then maintaining two copies - really depends
on the scenario. My problem is that I can't find a way to make 2 compilation libraries for the Smart Device and the windows XP. I tried using 2 separate projects and
use the same files but the IDE copied the files in to the new project folder
instead of using the original files.
Is there a better way to do it?
Am I doing something wrong when "Adding an Existing Item" to the project? This will copy the files uniquely so you may want to compile your own
library and add a reference to the other project.

There are a few threads on the subject, and I'm trying to find the other
ones for you. I know Lloyd Dupont has discussed this a bunch (he's in the
thread referenced below)

http://www.dotnet247.com/247referenc...40/204256.aspx

HTH,

Bill
Daniel.


W.G. Ryan, eMVP

http://forums.devbuzz.com/
http://www.knowdotnet.com/williamryan.html
http://www.msmvps.com/WilliamRyan/
http://www.devbuzz.com/content/zinc_...center_pg1.asp
Nov 16 '05 #2
Thanks for the help. Looking at yours and Lloyd Dupont's notes, I found the solution I was looking for

Using a single smart device library (under the Compact Framework limitations), for both Win XP and WinCE when I want to use the same code
In the cases where different implementation is needed I decided to use two projects that reside under the same directory and share the same source files except for the platform specific code, which will be used only in it's dedicated project, thus enabling code reuse in a single source file

Daniel.
Nov 16 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Brian Holbrook | last post by:
Is it possible to use the databrid as the flexgrid. I am using vb .net in a smart device application. I have a part number being entered by the user, I then want to search the grid for that part...
3
by: Casey Entzi | last post by:
I have Visual C#.net and got visual studio 2003 with it as a package. My question is, can I create programs for Smart Devices? In the help file it walks you through it, but it tells you to create...
2
by: Comcrap | last post by:
I'm trying to create a custom control for a smart device, and all the walkthroughs on msdn list a "Windows Control Library" project type under the smart device application wizard. I don't have...
2
by: Sreedharan | last post by:
Hi, I am using C#. Is there no Join method (in thread class)for Smart device application? And Also i noticed that Name property isn't there(got compiler error when trying to use them) Is this...
7
by: Dan | last post by:
I'd like to have a set of more-or-less common code which I want to use for both desktop and smart device projects. I have two questions: 1. How can I set up conditional compile directives for...
2
by: Jeff | last post by:
Please note this is NOT a rant or complaint! And yes, I'm over-simplifying, but intentionally. Here goes... With ASP.NET Web applications I like that I can access data from anywhere without...
4
by: JCR | last post by:
Hi, Programing for smart phones/pda/pocket PC... can be difficult because of the number of operating systems and the variety of devices. Is anyone aware of a cross-operating system/cross-device...
54
by: Boris | last post by:
I had a 3 hours meeting today with some fellow programmers that are partly not convinced about using smart pointers in C++. Their main concern is a possible performance impact. I've been explaining...
0
by: Chen Naikun | last post by:
hi, i created a webservice in vs 2008 and i can add and update the servie reference from a windows form application, but after i tried to add the web reference from a smart device application, i...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.