Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Converting a Windows CE .NET CF application to run on std Windows?

15 views
Skip to first unread message

Alain Dekker

unread,
Apr 30, 2013, 10:31:34 AM4/30/13
to
I have an application which runs nicely on Windows CE 5 (uses .NET CF 2.0).
Our sales and service teams would like a demo version of this application to
run on their laptops running Windows XP / 7. Is there a (relatively)
straightforward way to take the latest source of the Windows CE app and
compile a Windows NT version? Using Visual Studio 2005.

Thanks in advance,
Alain


Arne Vajhøj

unread,
Apr 30, 2013, 9:40:47 PM4/30/13
to
I have never written or even seen a .NET CF app.

But I was made to believe that .NET is a subset of full .NET.

And if that is the case then I would expect it to build/run
as is.

So what problems are you seeing?

Arne


Anders Eriksson

unread,
May 1, 2013, 3:22:21 AM5/1/13
to
On 2013-05-01 03:40, Arne Vajh�j wrote:
> On 4/30/2013 10:31 AM, Alain Dekker wrote:
>> I have an application which runs nicely on Windows CE 5 (uses .NET CF
>> 2.0).
>> Our sales and service teams would like a demo version of this
>> application to
>> run on their laptops running Windows XP / 7. Is there a (relatively)
>> straightforward way to take the latest source of the Windows CE app and
>> compile a Windows NT version? Using Visual Studio 2005.
>

This article might help!
http://msdn.microsoft.com/en-us/magazine/cc163387.aspx

// Anders

--
English isn't my first language.
So any error or strangeness is due to the translation.
Please correct my English so that I may become better.

Alain Dekker

unread,
May 1, 2013, 7:31:48 AM5/1/13
to
Thanks for the responses. The application just crashes horribly as you try
to run it. I suspect part of the problem is that I've had to use several
platform specific P/Invoke calls due to limitations of the CF. For example,
I've declared this for "GetTickCount" for use on WinCE:

[DllImport("coredll.dll")]
public static extern uint GetTickCount();

But the same version on Windows XP would be:

[DllImport("kernel32.dll")]
public static extern uint GetTickCount();

I am assuming I *might* be able to deal with thus using the preprocessor
(??).

I just don't know if that's the only issue I'll have to deal with, hence the
question. For example, I note that when I "Debug" my application in VS 2005,
it wants to deploy it to a Windows CE 5.0 device...and I can't stop it
trying to do this!!

Thanks,
Alain


"Anders Eriksson" <and...@gmail.com> wrote in message
news:klqfr...@news7.newsguy.com...

Arne Vajhøj

unread,
May 1, 2013, 8:21:06 PM5/1/13
to
On 5/1/2013 7:31 AM, Alain Dekker wrote:
> "Anders Eriksson" <and...@gmail.com> wrote in message
> news:klqfr...@news7.newsguy.com...
>> On 2013-05-01 03:40, Arne Vajh�j wrote:
>>> On 4/30/2013 10:31 AM, Alain Dekker wrote:
>>>> I have an application which runs nicely on Windows CE 5 (uses .NET CF
>>>> 2.0).
>>>> Our sales and service teams would like a demo version of this
>>>> application to
>>>> run on their laptops running Windows XP / 7. Is there a (relatively)
>>>> straightforward way to take the latest source of the Windows CE app and
>>>> compile a Windows NT version? Using Visual Studio 2005.
>>>
>>
>> This article might help!
>> http://msdn.microsoft.com/en-us/magazine/cc163387.aspx
>
> Thanks for the responses. The application just crashes horribly as you try
> to run it. I suspect part of the problem is that I've had to use several
> platform specific P/Invoke calls due to limitations of the CF. For example,
> I've declared this for "GetTickCount" for use on WinCE:
>
> [DllImport("coredll.dll")]
> public static extern uint GetTickCount();
>
> But the same version on Windows XP would be:
>
> [DllImport("kernel32.dll")]
> public static extern uint GetTickCount();
>
> I am assuming I *might* be able to deal with thus using the preprocessor
> (??).

The P/Invoke issue can be solved as described in Anders's link.

http://msdn.microsoft.com/en-us/magazine/cc163387.aspx#S7

To find P/Invoke problems you could try this tool:

http://www.mono-project.com/MoMA

Arne


0 new messages