PC Review


Reply
Thread Tools Rate Thread

CF application, with source, recompiled for .NET

 
 
Keven Corazza
Guest
Posts: n/a
 
      24th Mar 2010
Hi,

I would like to be sure if there are some possibilities to take the source
code of a CF application and recompile to create a .NET application.

I've to say that the application uses OpenNETCF library and call O.S.
library thorugh P-Invoke.

Which problems I've to face ?
Have I to recompile OpenNETCF library ? Is it possible ?

Thank you for your help.

Regards

Keven Corazza

 
Reply With Quote
 
 
 
 
Paul G. Tobey [eMVP]
Guest
Posts: n/a
 
      24th Mar 2010
As with any set of code that depends on a library, this might or might not
work, depending on what features of the .NET CF 'library' you are actually
using. If you have a simple Windows Forms application, yes, it will more or
less just work. If you are doing things with the WindowsMobile namespace,
none of that will work.

Most of the managed-only portions of OpenNETCF should be retargetable
(ApplicationEx), I think. Anything that OpenNETCF P/Invokes will have to be
changed, as the DLL names on desktop Windows are all different than on
Windows CE, so the DllImport attributes will all be wrong.

Generally, if I have to do this sort of thing, I throw away the user
interface for Windows CE and build a new one for the desktop. The business
logic code should port fine and much of what OpenNETCF does was put there to
fill in missing pieces of the .NET Framework that .NET CF didn't have, so you
can just use the real framework on the desktop for those things. The rest
you'll have to port by hand.

Paul T.

"Keven Corazza" wrote:

> Hi,
>
> I would like to be sure if there are some possibilities to take the source
> code of a CF application and recompile to create a .NET application.
>
> I've to say that the application uses OpenNETCF library and call O.S.
> library thorugh P-Invoke.
>
> Which problems I've to face ?
> Have I to recompile OpenNETCF library ? Is it possible ?
>
> Thank you for your help.
>
> Regards
>
> Keven Corazza
>

 
Reply With Quote
 
Keven Corazza
Guest
Posts: n/a
 
      25th Mar 2010
Thank you for the detailed answer.


"Paul G. Tobey [eMVP]" wrote:

> As with any set of code that depends on a library, this might or might not
> work, depending on what features of the .NET CF 'library' you are actually
> using. If you have a simple Windows Forms application, yes, it will more or
> less just work. If you are doing things with the WindowsMobile namespace,
> none of that will work.
>
> Most of the managed-only portions of OpenNETCF should be retargetable
> (ApplicationEx), I think. Anything that OpenNETCF P/Invokes will have to be
> changed, as the DLL names on desktop Windows are all different than on
> Windows CE, so the DllImport attributes will all be wrong.
>
> Generally, if I have to do this sort of thing, I throw away the user
> interface for Windows CE and build a new one for the desktop. The business
> logic code should port fine and much of what OpenNETCF does was put there to
> fill in missing pieces of the .NET Framework that .NET CF didn't have, so you
> can just use the real framework on the desktop for those things. The rest
> you'll have to port by hand.
>
> Paul T.
>
> "Keven Corazza" wrote:
>
> > Hi,
> >
> > I would like to be sure if there are some possibilities to take the source
> > code of a CF application and recompile to create a .NET application.
> >
> > I've to say that the application uses OpenNETCF library and call O.S.
> > library thorugh P-Invoke.
> >
> > Which problems I've to face ?
> > Have I to recompile OpenNETCF library ? Is it possible ?
> >
> > Thank you for your help.
> >
> > Regards
> >
> > Keven Corazza
> >

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Why does a client code need to be recompiled also? beginwithl@gmail.com Microsoft C# .NET 11 9th Jan 2009 10:22 PM
How to use recompiled DLL? Brett Microsoft C# .NET 1 29th Apr 2005 03:16 PM
How to use recompiled DLL? Brett Microsoft VB .NET 0 29th Apr 2005 02:07 PM
Adding a web application project to source control (Visual Source Safe) ~~~ .NET Ed ~~~ Microsoft ASP .NET 1 26th Feb 2005 02:20 PM
Asp.net page not recompiled =?Utf-8?B?QXNwLm5ldCBwYWdlIG5vdCByZWNvbXBpbGVk?= Microsoft ASP .NET 1 31st Jan 2004 02:43 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:25 PM.