PC Review Forums Newsgroups Microsoft DotNet Microsoft Dot NET Compact Framework Running cf programs on desktop

Reply

Running cf programs on desktop

 
Thread Tools Rate Thread
Old 21-06-2007, 03:40 PM   #1
Beorne
Guest
 
Posts: n/a
Default Running cf programs on desktop


2 different but similar problems with C# cf projects:

1) I can't run my cf application on my WinXp desktop PC. Double
clicking on the exe happens nothing. I does not know how to find the
error: I can debug my solution on the winCe device or on a simulator,
but I can't find how to change the debug target to Xp.

2) I have a desktop application using some cf libraries (this because
it shares some code with a cf application). It does run ok on my
desktop PC with winXp and VisualStudio but it does not run on any
other WinXP PC. In these PC is installed .NET 2.0 and .NET cf 2.0 (to
be sure) but the application just does nothing.

I have no idea hove to correct and debug these two errors,
Thank you very much

  Reply With Quote
Old 21-06-2007, 04:33 PM   #2
Jeff Hopper
Guest
 
Posts: n/a
Default Re: Running cf programs on desktop

You can't run a smart device/Windows Mobile application on a desktop/Windows
XP machine, just like you can't run a desktop application on a device. Since
the applications are compiled for different processors/platforms, you have
to use a device emulator to debug on the desktop. It is possible to share
certain code between Visual Studio projects, but a separate project for each
platform is needed to compile for each platform.

"Beorne" <matteo.dt@gmail.com> wrote in message
news:1182436846.814780.55230@o61g2000hsh.googlegroups.com...
>2 different but similar problems with C# cf projects:
>
> 1) I can't run my cf application on my WinXp desktop PC. Double
> clicking on the exe happens nothing. I does not know how to find the
> error: I can debug my solution on the winCe device or on a simulator,
> but I can't find how to change the debug target to Xp.
>
> 2) I have a desktop application using some cf libraries (this because
> it shares some code with a cf application). It does run ok on my
> desktop PC with winXp and VisualStudio but it does not run on any
> other WinXP PC. In these PC is installed .NET 2.0 and .NET cf 2.0 (to
> be sure) but the application just does nothing.
>
> I have no idea hove to correct and debug these two errors,
> Thank you very much
>


  Reply With Quote
Old 21-06-2007, 04:46 PM   #3
Paul G. Tobey [eMVP]
Guest
 
Posts: n/a
Default Re: Running cf programs on desktop

Take a look at Daniel Moth's article in this month's MSDN magazine. In
fact, you *can* run .NET CF programs on the desktop, as long as they aren't
using assemblies that don't exist on the desktop (SMS, etc., maybe).

The first step in figuring out why *this particular* program won't run is to
build a very simple, Hello, World .NET CF program and try running that on
the desktop. If that doesn't work, I'd guess that you don't have the .NET
Framework installed on the desktop machine. You can get that via Windows
Update or from the Microsoft downloads site, I'm sure.

If the Hello, World program does run, you'll need to figure out what's
different between your real program and that simple test. Any of the
Windows Mobile assemblies that you might be using could prevent it from
starting. If you need them and can't figure out how to work around, use the
emulator.

Paul T.

"Jeff Hopper" <jeff@hopperconsulting.net_no-spam-plz> wrote in message
news:83742B74-33ED-46A8-8203-19F8E78D479D@microsoft.com...
> You can't run a smart device/Windows Mobile application on a
> desktop/Windows XP machine, just like you can't run a desktop application
> on a device. Since the applications are compiled for different
> processors/platforms, you have to use a device emulator to debug on the
> desktop. It is possible to share certain code between Visual Studio
> projects, but a separate project for each platform is needed to compile
> for each platform.
>
> "Beorne" <matteo.dt@gmail.com> wrote in message
> news:1182436846.814780.55230@o61g2000hsh.googlegroups.com...
>>2 different but similar problems with C# cf projects:
>>
>> 1) I can't run my cf application on my WinXp desktop PC. Double
>> clicking on the exe happens nothing. I does not know how to find the
>> error: I can debug my solution on the winCe device or on a simulator,
>> but I can't find how to change the debug target to Xp.
>>
>> 2) I have a desktop application using some cf libraries (this because
>> it shares some code with a cf application). It does run ok on my
>> desktop PC with winXp and VisualStudio but it does not run on any
>> other WinXP PC. In these PC is installed .NET 2.0 and .NET cf 2.0 (to
>> be sure) but the application just does nothing.
>>
>> I have no idea hove to correct and debug these two errors,
>> Thank you very much
>>

>



  Reply With Quote
Old 21-06-2007, 06:24 PM   #4
Daniel Moth
Guest
 
Posts: n/a
Default Re: Running cf programs on desktop

Thanks Paul.

For general reference and the archives, here is the article online:
http://msdn.microsoft.com/msdnmag/i...de/default.aspx

Cheers
Daniel
--
http://www.danielmoth.com/Blog/

"Paul G. Tobey [eMVP]" <p space tobey no spam AT no instrument no spam DOT
com> wrote in message news:OfEjosBtHHA.2752@TK2MSFTNGP06.phx.gbl...
> Take a look at Daniel Moth's article in this month's MSDN magazine. In
> fact, you *can* run .NET CF programs on the desktop, as long as they
> aren't using assemblies that don't exist on the desktop (SMS, etc.,
> maybe).
>
> The first step in figuring out why *this particular* program won't run is
> to build a very simple, Hello, World .NET CF program and try running that
> on the desktop. If that doesn't work, I'd guess that you don't have the
> .NET Framework installed on the desktop machine. You can get that via
> Windows Update or from the Microsoft downloads site, I'm sure.
>
> If the Hello, World program does run, you'll need to figure out what's
> different between your real program and that simple test. Any of the
> Windows Mobile assemblies that you might be using could prevent it from
> starting. If you need them and can't figure out how to work around, use
> the emulator.
>
> Paul T.
>
> "Jeff Hopper" <jeff@hopperconsulting.net_no-spam-plz> wrote in message
> news:83742B74-33ED-46A8-8203-19F8E78D479D@microsoft.com...
>> You can't run a smart device/Windows Mobile application on a
>> desktop/Windows XP machine, just like you can't run a desktop application
>> on a device. Since the applications are compiled for different
>> processors/platforms, you have to use a device emulator to debug on the
>> desktop. It is possible to share certain code between Visual Studio
>> projects, but a separate project for each platform is needed to compile
>> for each platform.
>>
>> "Beorne" <matteo.dt@gmail.com> wrote in message
>> news:1182436846.814780.55230@o61g2000hsh.googlegroups.com...
>>>2 different but similar problems with C# cf projects:
>>>
>>> 1) I can't run my cf application on my WinXp desktop PC. Double
>>> clicking on the exe happens nothing. I does not know how to find the
>>> error: I can debug my solution on the winCe device or on a simulator,
>>> but I can't find how to change the debug target to Xp.
>>>
>>> 2) I have a desktop application using some cf libraries (this because
>>> it shares some code with a cf application). It does run ok on my
>>> desktop PC with winXp and VisualStudio but it does not run on any
>>> other WinXP PC. In these PC is installed .NET 2.0 and .NET cf 2.0 (to
>>> be sure) but the application just does nothing.
>>>
>>> I have no idea hove to correct and debug these two errors,
>>> Thank you very much
>>>

>>

>
>


  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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off