Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
.NET Framework 2.0 For discussion of the Microsoft .NET Framework 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the .NET Framework 2.0 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old June 9th, 2008, 02:02 PM
Friend of Wrox
 
Join Date: Oct 2004
Location: India.
Posts: 224
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to ashu_from_india Send a message via Yahoo to ashu_from_india
Default ASP.NET Website with Pocket PC Dlls

Hi All,

I am creating a website in ASP.NET 2.0
Also, I have a set of Pocket PC class library functions and I want to use it in the website.

I am able to add the Pocket PC Cass Library Project to the website Solution, but the website build fails.

Please help,

Ashu


  #2 (permalink)  
Old June 10th, 2008, 03:03 AM
samjudson's Avatar
Friend of Wrox
Points: 8,687, Level: 40
Points: 8,687, Level: 40 Points: 8,687, Level: 40 Points: 8,687, Level: 40
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2007
Location: Newcastle, , United Kingdom.
Posts: 2,128
Thanks: 1
Thanked 189 Times in 188 Posts
Default

Even though the DLLs look the same for the Pocket PC and windows (e.g. System.dll) they are actually very different. So the way you are trying to do this wont work.

What you can do however is create a new Windows Class Library project, and add your existing .cs (or .vb) files to it and compile that - so you are getting two different DLLs out of the end, but from one set of source files.

/- Sam Judson : Wrox Technical Editor -/
  #3 (permalink)  
Old June 10th, 2008, 12:16 PM
Friend of Wrox
 
Join Date: Oct 2004
Location: India.
Posts: 224
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to ashu_from_india Send a message via Yahoo to ashu_from_india
Default

thnx Sam for the quick reply..
now, my next query is based on this one...

i hv a class in which i hv diff functions to connect to SQL Server and SQL CE.
how can i conditionally compile the class so tht SQL CE function is compiled for PPC WinForm application and SQL Server function is compiled for Desktop ASP.NET application.

thnx,
Ashu


  #4 (permalink)  
Old June 11th, 2008, 11:06 AM
samjudson's Avatar
Friend of Wrox
Points: 8,687, Level: 40
Points: 8,687, Level: 40 Points: 8,687, Level: 40 Points: 8,687, Level: 40
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2007
Location: Newcastle, , United Kingdom.
Posts: 2,128
Thanks: 1
Thanked 189 Times in 188 Posts
Default

Well you could do a similar thing - have more than one file that both implement a class with the same name, one which talks to SQL Server, the other to SQL CE. Perhaps define a common interface file so you know they both do in fact implement the same methods.

/- Sam Judson : Wrox Technical Editor -/


Similar Threads
Thread Thread Starter Forum Replies Last Post
pocket pc programming angelboy General .NET 1 April 23rd, 2007 07:28 AM
Setfocus on Pocket PC rtr1900 Classic ASP Basics 0 October 2nd, 2006 02:29 AM
vb.net smart device pocket pc and xml BlueIce6 VB.NET 0 February 16th, 2005 05:33 PM
XML Pocket PC VB.net help BlueIce6 XML 0 February 16th, 2005 12:07 AM
file transfer ftp server to a pocket PC in C# .NET g_hristodol ADO.NET 0 October 21st, 2004 06:14 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.