.NETGURU
Portable Code Base for both Pocket PC's and Desktops
Messages   Related Types
This message was discovered on microsoft.public.dotnet.framework.interop.
Responses highlighted in red are from those people who are likely to be able to contribute good, authoratitive information to this discussion. They include Microsoft employees, MVP's and others who IMHO contribute well to these kinds of discussions.
Post a new message to this list...

Tarundeep Singh Kalra
Hi,
i am facing a peculiar problem with regards to Code Portability both on
Pocket PC and Desktops.

My company wants me to maintain the common code base for both the platforms.

Is .NET suitable for that ( Is WinCE.NET and .NET same).

Can we do it in SDK (pocket pc sdk and desktop SDK).

I need inputs from all of you.
Thanks a lot in advance.

--
Regards
Tarundeep Singh Kalra

www_dot_tarunsadhana_dot_com.

tarun_at_removeAT_tarunsadhana_dot_com.remove_dots

Reply to this message...
 
    
Stic (VIP)
Hi,

Rather not, because Pocet PC work on .Net Compact Framework with is
something like 'limited' framwork, that's why you wasn't be able to do a lot
of things. So your answer is - no :(

I yopu need more power from .NET Compact Framework try www.opennetcf.org
framework, some kind of "extension", to the basic functionality of .NET CF.

Anyway you could try to use classes of business logic both the same.

I do this when at Pocket PC I magage to separate the GUI from logic, and at
PC I did the same - then if you need to change for example customer input
form, there will be a change in 3 (not 4) places, at both Pocekt PC & PC GUI
and at business logic tier.

Anyway this isn't Framwork question anymore - but something like aritect
patterns ;-)

--
best regards
Stic

"Tarundeep Singh Kalra" wrote:

[Original message clipped]

Reply to this message...
 
    
Justin Beckwith
I have been going through a similar transition, moving from a desktop
application to a pocket app. The best advice I've gotten via
groups/msdn is to first develop the business logic for your compact
framework device, then user that dll in your desktop application.
That serves two purposes: 1.) you wont use an libraries that arent
available for compact framework (without an addon dll) and 2.) you can
import a smart device dll into a desktop app, but not vice versa. I
hope this was helpful, good luck!

"Stic" <Click here to reveal e-mail address> wrote in message news:<Click here to reveal e-mail address>...
[Original message clipped]

Reply to this message...
 
    
Ignacio Machin \( .NET/ C# MVP \)
Hi,

You can do it IF you do not include any platform dependand functionality.
This is almost impossible in the PPC as probably you need to P/Invoke.

Othen than that your PPC application will runs just fine in the desktop, of
course they will look small and the interface will be clumsy and not very
UI.

cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

"Tarundeep Singh Kalra" <Click here to reveal e-mail addresssary>
wrote in message news:Click here to reveal e-mail address...
[Original message clipped]

Reply to this message...
 
    
Chris Tacke, eMVP
It's very possible. CF assemblies will retarget to the desktop, so develop
and compile using the CF and it should (there are some exceptions) work fine
on the desktop.

-Chris

"Tarundeep Singh Kalra" <Click here to reveal e-mail addresssary>
wrote in message news:Click here to reveal e-mail address...
[Original message clipped]

Reply to this message...
 
    
Stic
And all the methodes names ? Database access, things like this ? Is there a
way to work in such a enviroment ?

--
best regards
stic

"Chris Tacke, eMVP" wrote:

[Original message clipped]

Reply to this message...
 
    
Chris Tacke, eMVP (VIP)
Yes, there are some changes (like with the Sql stuff) and P/Invoking needs
special attention, but it's all doable.

Take a look at the OpenNETCF.IO.Serial code - it works on a CE device and
the PC just fine.

www.opennetcf.org/sdf

-Chris

"Stic" <stefantura-at-poczta-dot-onet-dot-pl> wrote in message
news:Click here to reveal e-mail address...
> And all the methodes names ? Database access, things like this ? Is there
a
[Original message clipped]

Reply to this message...
 
 




ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
Ad


Need Dot Net Interview Questions?
Ask ExamGuru, Inc. for advice and help on Passing .Net Interviews
.Net Projects
Best-of-breed application framework for .NET projects, developed by ExamGuru, Inc. and ExamGuru IT
Free .net Help
Commission ExamGuru, Inc. and his team for your next bespoke software project
FogBUGZ
The only bug tracking system carefully crafted with one goal in mind: helping teams create great software.
Awesome Tools
If you don't know about these, you're missing out... IT Certification Questions
IT Interview Questions
Free Oracle 10g Training
MCSE Boortcamp
Cisco Study Guides
Cheap Study Guides
Exact Questions
Dot Net Interview Questions
Oracle OCP
Cheap Travel
Designer Perfumes - Wholesale Prices
Free Programming Tutorials
 
ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
 Copyright © ExamGuru, Inc. 2001-2006
Contact Us - Terms of Use - Privacy Policy - www.dot-net-guru.com - www.examguru.net - www.oraclesource.net - www.itinterviews.net - www.examguru.net/ITCertification