473,748 Members | 6,370 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1490
Hi Daniel:

--
"Daniel Granatshtein" <Da*****@logi-tag.com> wrote in message
news:C0******** *************** ***********@mic rosoft.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
562
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 number, if it is not there I want to add it. I also want the ability for the user to remove rows from the grid. The first problem is that this data is not in any database. The second is that I am developing a smart device application which...
3
2856
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 a new project and click smart device. The only templates it lists under "Visual C# Projects are: Windows Application Class Library ASP.NET Web Application ASP.NET Web Service ASP.NET Mobile Web Application
2
3955
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 this project type option. The only thing I could find on msdn was at: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon/html/vbconwindowscontrollibrarytemplate.asp but this told me: "Note This project type is not...
2
2906
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 a limitation for smart device application? Is there any forum/group available for Smart device application developer?
7
3105
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 those parts of the code which are different on desktop and smart device projects 2. How can I actually share the same .cs source code files between the two projects. If I try to open a smart device project and add the files which are in the...
2
2403
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 installing anything on the client (but I hate HTML and markup in general and it's limitations, the request/response model, state management, etc). AFAIK, Smart apps or smart clients or whatever we call them are simply variations of Web applications...
4
1810
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 environment to write programs in C++. Open-source or not! Or maybe there is no such thing and the solution is to set up a specific project for each target? Thanks in advance
54
12003
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 the advantages of smart pointers endlessly (which are currently used in all our C++ software; we use the Boost smart pointers) as I'm seriously concerned that there is a shift to raw pointers. We are not developing system software but rather...
0
2861
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 can not update this web reference. i got the "the customer tools msdiscocodegenerator failed, could not retrieve the current project" message! the smart device application is a wince device application, and .net 3.5. evne i changed to .net 2.0...
0
8991
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9544
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9372
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9324
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8243
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6796
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6074
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4606
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
3
2215
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.