472,782 Members | 1,152 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

mixing compact and winform code

Is it possible to mix code meant for the CompactFramework and
code meant for the standard framework?

We are trying to make PDA and light-weight "laptop" versions of
one application. This means a lot of functionality is identical
(or at least similar).
As the compact framework is a subset (correct?) of the full
framework, we had the idea of building the base functionality
as "compact" projects. Thse projects could then be used
(or extended) by both the PDA and laptop versions.

However! We run into several problems. The compact "System.dll"
is copied to the run directory (even though "copy local" is
set to "false"), which leads to problems when a standard
application tries to access it's (standard) System.dll.

Is it even possible to build such "shared projects" and did we
just miss some setting, or should we separate these projects
into "pure compact" and "pure laptop" (with all consistency problems)

Hans Kesting
Nov 16 '05 #1
2 1929
Hans,
The way I did it was to create the SmartDevice project, then I could use
the binary exe on the desktop and the PPC. AFAIK, you'd only get the
system.dll copied if you chose one that is a different version than what's
in the GAC. Have you tried deleting the one in your run dir to see if
there's really a dependency on it?

--
Floyd Burger

"Hans Kesting" <ne***********@spamgourmet.com> wrote in message
news:e5**************@TK2MSFTNGP12.phx.gbl...
Is it possible to mix code meant for the CompactFramework and
code meant for the standard framework?

We are trying to make PDA and light-weight "laptop" versions of
one application. This means a lot of functionality is identical
(or at least similar).
As the compact framework is a subset (correct?) of the full
framework, we had the idea of building the base functionality
as "compact" projects. Thse projects could then be used
(or extended) by both the PDA and laptop versions.

However! We run into several problems. The compact "System.dll"
is copied to the run directory (even though "copy local" is
set to "false"), which leads to problems when a standard
application tries to access it's (standard) System.dll.

Is it even possible to build such "shared projects" and did we
just miss some setting, or should we separate these projects
into "pure compact" and "pure laptop" (with all consistency problems)

Hans Kesting

Nov 16 '05 #2

"Floyd Burger" <fl***@adelphia.not> wrote in message
news:eY**************@tk2msftngp13.phx.gbl...
Hans,
The way I did it was to create the SmartDevice project, then I could use
the binary exe on the desktop and the PPC. AFAIK, you'd only get the
system.dll copied if you chose one that is a different version than what's
in the GAC. Have you tried deleting the one in your run dir to see if
there's really a dependency on it?

--
Floyd Burger

I never explicitly *chose* a system.dll, but it gets copied when I use
Compact classes
in a "desktop" project. The system.dll is the "Compact Framework" one.
When I stay within one solution, it seems to work. However, when I try to
reference
my dll from another solution, then I get a warning "this will change where
system.dll
is found". The warning is accurate because then I get lots of problems with
incorrect versions.

Temporary solution:
copy all *our* dll's to a separate directory and reference from there. As
there is
no invalid system.dll, the problems do not occur.

Hans Kesting

"Hans Kesting" <ne***********@spamgourmet.com> wrote in message
news:e5**************@TK2MSFTNGP12.phx.gbl...
Is it possible to mix code meant for the CompactFramework and
code meant for the standard framework?

We are trying to make PDA and light-weight "laptop" versions of
one application. This means a lot of functionality is identical
(or at least similar).
As the compact framework is a subset (correct?) of the full
framework, we had the idea of building the base functionality
as "compact" projects. Thse projects could then be used
(or extended) by both the PDA and laptop versions.

However! We run into several problems. The compact "System.dll"
is copied to the run directory (even though "copy local" is
set to "false"), which leads to problems when a standard
application tries to access it's (standard) System.dll.

Is it even possible to build such "shared projects" and did we
just miss some setting, or should we separate these projects
into "pure compact" and "pure laptop" (with all consistency problems)

Hans Kesting


Nov 16 '05 #3

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

Similar topics

7
by: me | last post by:
i run a script which compacts a backend mdb at midnight when no one is connected to the backend. I compact it on the server. But this means that we need an extra license for Office to have it...
1
by: smitty mittlebaum | last post by:
I have a strange problem that has reared its ugly head in the last few weeks. I have the option "Compact on Close" (Tools, Options, General tab) enabled on my development machine. I did this...
2
by: Greg Strong | last post by:
Hello All, I've written code in a test database with test data. Everything seems to be working except compact database in VB code per http://www.mvps.org/access/general/gen0041.htm. The reason I...
1
by: robert demo via AccessMonster.com | last post by:
In my startup routine, I have the following code: s = CLng(FileLen(filespec) / 1000000) If s > 5 Then 'FIRST, BACKUP THE FRONT END If BackupFrontEnd = False Then Exit Function End If
5
by: Prakash | last post by:
Does anyone know how to compact a table (only) ? I'm using some code o move rows up & down in a continuous form & it works fine, but after some usage the rows refuse to move up or down until I...
2
by: Hans Kesting | last post by:
Is it possible to mix code meant for the CompactFramework and code meant for the standard framework? We are trying to make PDA and light-weight "laptop" versions of one application. This means a...
28
by: ziman137 | last post by:
Hello all, I have a question and am seeking for some advice. I am currently working to implement an algorithmic library. Because the performance is the most important factor in later...
8
by: Jeff | last post by:
I have a db that has a couple of times closed Access completely when Saving work. So I usually compact and decompile and this seems to fix the problem. But not his time. It has come back again....
1
by: Neil.Young | last post by:
Hi, I have written a WinForm app using VS 2008. The app uses LINQ to SQL for a SQL Server Compact Edition database. The Setup has only one requirement (by default): .net 3.5 runtime. Now I...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 2 August 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
linyimin
by: linyimin | last post by:
Spring Startup Analyzer generates an interactive Spring application startup report that lets you understand what contributes to the application startup time and helps to optimize it. Support for...
0
by: erikbower65 | last post by:
Here's a concise step-by-step guide for manually installing IntelliJ IDEA: 1. Download: Visit the official JetBrains website and download the IntelliJ IDEA Community or Ultimate edition based on...
0
by: kcodez | last post by:
As a H5 game development enthusiast, I recently wrote a very interesting little game - Toy Claw ((http://claw.kjeek.com/))。Here I will summarize and share the development experience here, and hope it...
0
by: Taofi | last post by:
I try to insert a new record but the error message says the number of query names and destination fields are not the same This are my field names ID, Budgeted, Actual, Status and Differences ...
0
by: Rina0 | last post by:
I am looking for a Python code to find the longest common subsequence of two strings. I found this blog post that describes the length of longest common subsequence problem and provides a solution in...
0
by: lllomh | last post by:
How does React native implement an English player?
0
by: Mushico | last post by:
How to calculate date of retirement from date of birth
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...

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.