PC Review Forums Newsgroups Microsoft DotNet Microsoft Dot NET Compact Framework run cf app on regular pc ?

Reply

run cf app on regular pc ?

 
Thread Tools Rate Thread
Old 14-01-2006, 02:40 PM   #1
Rainer Queck
Guest
 
Posts: n/a
Default run cf app on regular pc ?


Hi NG,

what must I do to run a CF2.0 application on a standard windows xp pc?
Isn't it enought to have the compact framework installed on it?

My application runs fine on a pocketPC, but if I want to start it on my
workstation, nothing happens.

Thanks for hints and help.

Rainer
  Reply With Quote
Old 14-01-2006, 02:56 PM   #2
Tim Wilson
Guest
 
Posts: n/a
Default Re: run cf app on regular pc ?

As long as you have limited your application to types and members that exist
in both the full framework and compact framework, and you have compiled the
application against the compact framework, then your application should get
retargeted to the full framework on the desktop when it's run. You do not
need the compact framework installed on the desktop to do this. However, I'd
assume that you'd need the full .NET framework 2.0 installed on the desktop
if your application was compiled against compact framework 2.0... but that's
just an assumption... you may be able to get away with the full .NET
framework 1.1 installed.

--
Tim Wilson
..NET Compact Framework MVP

"Rainer Queck" <Rainer@noemail.noemail> wrote in message
news:%23l2hfhRGGHA.216@TK2MSFTNGP15.phx.gbl...
> Hi NG,
>
> what must I do to run a CF2.0 application on a standard windows xp pc?
> Isn't it enought to have the compact framework installed on it?
>
> My application runs fine on a pocketPC, but if I want to start it on my
> workstation, nothing happens.
>
> Thanks for hints and help.
>
> Rainer



  Reply With Quote
Old 14-01-2006, 03:14 PM   #3
Rainer Queck
Guest
 
Posts: n/a
Default Re: run cf app on regular pc ?

Hi Tim,

> As long as you have limited your application to types and members that exist
> in both the full framework and compact framework, and you have compiled the
> application against the compact framework, then your application should get
> retargeted to the full framework on the desktop when it's run. You do not
> need the compact framework installed on the desktop to do this. However, I'd
> assume that you'd need the full .NET framework 2.0 installed on the desktop
> if your application was compiled against compact framework 2.0... but that's
> just an assumption... you may be able to get away with the full .NET
> framework 1.1 installed.
>

This is what I thought.
Since I have Visual Studio 2005 Installed, and developed the PockePC app
with it on my workstation, I would expect, that i can runn it there.
But as stated before, as soon as I "double click" on it, nothing
happens. No error message, nothing. Also the task manager does not show
this app running.

Regards
Rainer
  Reply With Quote
Old 14-01-2006, 03:22 PM   #4
Tim Wilson
Guest
 
Posts: n/a
Default Re: run cf app on regular pc ?

Have you tried creating a very basic PPC application and running that on the
desktop? In other words, just create a new device project, compile it, and
then go to the output directory and run the exe. If it works then it may
indicate that there's something in your application that's causing it to
terminate when run on the desktop.

--
Tim Wilson
..NET Compact Framework MVP

"Rainer Queck" <Rainer@noemail.noemail> wrote in message
news:uKiB50RGGHA.3120@TK2MSFTNGP10.phx.gbl...
> Hi Tim,
>
> > As long as you have limited your application to types and members that

exist
> > in both the full framework and compact framework, and you have compiled

the
> > application against the compact framework, then your application should

get
> > retargeted to the full framework on the desktop when it's run. You do

not
> > need the compact framework installed on the desktop to do this. However,

I'd
> > assume that you'd need the full .NET framework 2.0 installed on the

desktop
> > if your application was compiled against compact framework 2.0... but

that's
> > just an assumption... you may be able to get away with the full .NET
> > framework 1.1 installed.
> >

> This is what I thought.
> Since I have Visual Studio 2005 Installed, and developed the PockePC app
> with it on my workstation, I would expect, that i can runn it there.
> But as stated before, as soon as I "double click" on it, nothing
> happens. No error message, nothing. Also the task manager does not show
> this app running.
>
> Regards
> Rainer



  Reply With Quote
Old 14-01-2006, 03:32 PM   #5
Rainer Queck
Guest
 
Posts: n/a
Default Re: run cf app on regular pc ?

Hi Tim


> Have you tried creating a very basic PPC application and running that on the
> desktop? In other words, just create a new device project, compile it, and
> then go to the output directory and run the exe. If it works then it may
> indicate that there's something in your application that's causing it to
> terminate when run on the desktop.

Just tried that. And yes you are right. the "other" PocketPC applictaion
works fine on my workstation.
I guess I will no have to search for what the reason to my problem could
be in my project.... hm...

Thanks for your hints. At least I now know where to search for the problem.

Rainer
  Reply With Quote
Old 14-01-2006, 03:52 PM   #6
Daniel Moth
Guest
 
Posts: n/a
Default Re: run cf app on regular pc ?

Can you post your code? If not let us know (or me directly if you prefer)
what the problem was. You should have at least got an exception if you were
using CF-specific functionality (either inherent or your own e.g. coredll
pinvokes).

CF-specific functionality out of the box:
http://www.danielmoth.com/Blog/2005...ict-subset.html

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

"Rainer Queck" <Rainer@noemail.noemail> wrote in message
news:OY%23Ps%23RGGHA.344@TK2MSFTNGP11.phx.gbl...
> Hi Tim
>
>
>> Have you tried creating a very basic PPC application and running that on
>> the
>> desktop? In other words, just create a new device project, compile it,
>> and
>> then go to the output directory and run the exe. If it works then it may
>> indicate that there's something in your application that's causing it to
>> terminate when run on the desktop.

> Just tried that. And yes you are right. the "other" PocketPC applictaion
> works fine on my workstation.
> I guess I will no have to search for what the reason to my problem could
> be in my project.... hm...
>
> Thanks for your hints. At least I now know where to search for the
> problem.
>
> Rainer



  Reply With Quote
Old 14-01-2006, 04:02 PM   #7
Rainer Queck
Guest
 
Posts: n/a
Default Re: run cf app on regular pc ?

Hi Daniel,

> Can you post your code? If not let us know (or me directly if you prefer)
> what the problem was. You should have at least got an exception if you were
> using CF-specific functionality (either inherent or your own e.g. coredll
> pinvokes).

I am still looking for the reason.
As it looks for the moment it must be some "visual component" out of the
tool box.

in the main forms constructor I placed some debugging code:

MessageBox.Show("OekoTempPPC 1");
InitializeComponent();
MessageBox.Show("OekoTempPPC 2");

"OekoTempPPC 1" message box is shown, the second one not.
I will continue this procedure inside "InitializeComponent()" to find
out which component it is....

Regards
Rainer
>
> CF-specific functionality out of the box:
> http://www.danielmoth.com/Blog/2005...ict-subset.html
>
> Cheers
> Daniel
> --
> http://www.danielmoth.com/Blog/
>
> "Rainer Queck" <Rainer@noemail.noemail> wrote in message
> news:OY%23Ps%23RGGHA.344@TK2MSFTNGP11.phx.gbl...
>
>>Hi Tim
>>
>>
>>
>>>Have you tried creating a very basic PPC application and running that on
>>>the
>>>desktop? In other words, just create a new device project, compile it,
>>>and
>>>then go to the output directory and run the exe. If it works then it may
>>>indicate that there's something in your application that's causing it to
>>>terminate when run on the desktop.

>>
>>Just tried that. And yes you are right. the "other" PocketPC applictaion
>>works fine on my workstation.
>>I guess I will no have to search for what the reason to my problem could
>>be in my project.... hm...
>>
>>Thanks for your hints. At least I now know where to search for the
>>problem.
>>
>>Rainer

>
>
>

  Reply With Quote
Old 14-01-2006, 04:09 PM   #8
Rainer Queck
Guest
 
Posts: n/a
Default Re: run cf app on regular pc ?

hm.... strange.

as stated before, I added some code to the "InitializeComponend" like:

private void InitializeComponent()
{
System.Windows.Forms.MessageBox.Show("InitializeComponent 1");
this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new
System.ComponentModel.ComponentResourceManager(typeof(OekoTempPPC));
....

But this messagebox doesn't even pop up any more! Why?

Regards
Rainer
  Reply With Quote
Old 14-01-2006, 04:16 PM   #9
Daniel Moth
Guest
 
Posts: n/a
Default Re: run cf app on regular pc ?

If you post a sample I can look at it. Of course, you verified that you are
not using anything CF-specific in the project, right?

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

"Rainer Queck" <Rainer@noemail.noemail> wrote in message
news:%23qEibTSGGHA.1628@TK2MSFTNGP12.phx.gbl...
> hm.... strange.
>
> as stated before, I added some code to the "InitializeComponend" like:
>
> private void InitializeComponent()
> {
> System.Windows.Forms.MessageBox.Show("InitializeComponent 1");
> this.components = new System.ComponentModel.Container();
> System.ComponentModel.ComponentResourceManager resources = new
> System.ComponentModel.ComponentResourceManager(typeof(OekoTempPPC));
> ...
>
> But this messagebox doesn't even pop up any more! Why?
>
> Regards
> Rainer



  Reply With Quote
Old 14-01-2006, 04:25 PM   #10
Rainer Queck
Guest
 
Posts: n/a
Default Re: run cf app on regular pc ?

Hi Daniel,

> not using anything CF-specific in the project, right?

I think I do... How about the DataGrid ?

Rainer
  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