Discussion:
Console Application on windows CE 5.0
(too old to reply)
tux
2008-02-15 14:12:34 UTC
Permalink
Dear,

I have to realise a console application on a target with windows ce 5.0, in
fact I want to run in background this aplication and launch that at the
startup.

In the platform builder I set the environmental variable BSP_NODISPLAY = 1
because I do not need the display and I want to be sure that the processor
doesn't work on things that I do not need.

In first I developed an WCE Application with evc4, and launch that form the
common.reg.
In this case with display it works without(BSP_NODISPLAY) doesn't.

I have changed and I develop the same application in C# with the VS2005
choosing Application Console, but also in this case I had the same results.

Of course I added "Console Window" and "Command Processor" in my OS design to
support the console application.

Do I have to launch my application in a particular mode?
Do I have to build the console application in a particular mode?

Thanks in advance.
Paul G. Tobey [eMVP]
2008-02-15 16:04:31 UTC
Permalink
You lost me. How are you going to have stuff on the screen if you have
no-display set? Your device has no display? What good would the console
be, then? You're going to redirect it to a serial port or something?

You say that your program, written with eVC, works with a display on the
device but not without. Did you recompile the program to target a new SDK
(one that was built in the no-display configuration)? You have to do that
or you might easily have dozens of things that you're doing or trying to do
in your code that are impossible because there is no display.

If you give us a better description of what this program is supposed to
*do*, we can probably advise you better on how to implement that. In all
cases, though, USE THE SDK FOR THE ACTUAL OS THAT IS RUNNING ON YOUR TARGET
DEVICE TO BUILD YOUR PROGRAM!

Paul T.
Post by tux
Dear,
I have to realise a console application on a target with windows ce 5.0, in
fact I want to run in background this aplication and launch that at the
startup.
In the platform builder I set the environmental variable BSP_NODISPLAY = 1
because I do not need the display and I want to be sure that the processor
doesn't work on things that I do not need.
In first I developed an WCE Application with evc4, and launch that form the
common.reg.
In this case with display it works without(BSP_NODISPLAY) doesn't.
I have changed and I develop the same application in C# with the VS2005
choosing Application Console, but also in this case I had the same results.
Of course I added "Console Window" and "Command Processor" in my OS design to
support the console application.
Do I have to launch my application in a particular mode?
Do I have to build the console application in a particular mode?
Thanks in advance.
tux
2008-02-15 16:59:22 UTC
Permalink
Hi,

I have a display only to debug the OS, in my final application I'll remove
that.

The OS is a Windows CE 5.0.

In particular the console application creates a TCP server(windows CE) while
the client (windows XP) runs on my desktop.
The client has to send some charchters to the server... very simple.
Both server and client are written in c# or in c++ in the previous version.
Currently I'm working on c# version using Visual Studio 2005, of course the
client as "Console Application" choosing the kind of the project in the Smart
Device Section (File -> Add -> New Project -> Visual c# -> Smart Device ->
Windows CE 5.0 -> Console Application).

I added the console-application.exe in my OS and in the common.reg I launched
that:

[HKEY_LOCAL_MACHINE\init]
IF IMGCELOGENABLE
; At most one CeLog flush app (CeLogFlush, OSCapture) can be used
IF IMGAUTOFLUSH
"Launch05"="CeLogFlush.exe"
ENDIF
IF IMGOSCAPTURE
"Launch05"="OSCapture.exe"
ENDIF
ENDIF
; @CESYSGEN IF CE_MODULES_SHELL
IF IMGNOKITL !
"Launch10"="shell.exe"
ENDIF IMGNOKITL !
; @CESYSGEN ENDIF
; @CESYSGEN IF CE_MODULES_DEVICE
"Launch20"="device.exe"
; @CESYSGEN IF CE_MODULES_SHELL
IF IMGNOKITL !
"Depend20"=hex:0a,00
ENDIF IMGNOKITL !
; @CESYSGEN ENDIF
; @CESYSGEN ENDIF
IF IMGKCOVER
"Launch25"="CoverSrv.exe"
ENDIF
; @CESYSGEN IF CE_MODULES_GWES
"Launch30"="gwes.exe"
"Depend30"=hex:14,00
; @CESYSGEN ENDIF
; @CESYSGEN IF CE_MODULES_BTGW
; @CESYSGEN ENDIF

"Launch110"="console-application.exe"
"Depend110"=hex:14,00

This works only if I build my windows CE with the display, in fact if I build
using BSP_NODISPLAY or if I remove the registry keys of my display, the
server on windows ce doesn't start.
Without display I've checked that the OS runs pinging the target and it
answers!

By the way my objective is create an application without the graphical
support, and reading the MSDN I understood that I have use the Visual Studio
2005.

Thanks.
Post by Paul G. Tobey [eMVP]
You lost me. How are you going to have stuff on the screen if you have
no-display set? Your device has no display? What good would the console
be, then? You're going to redirect it to a serial port or something?
You say that your program, written with eVC, works with a display on the
device but not without. Did you recompile the program to target a new SDK
(one that was built in the no-display configuration)? You have to do that
or you might easily have dozens of things that you're doing or trying to do
in your code that are impossible because there is no display.
If you give us a better description of what this program is supposed to
*do*, we can probably advise you better on how to implement that. In all
cases, though, USE THE SDK FOR THE ACTUAL OS THAT IS RUNNING ON YOUR TARGET
DEVICE TO BUILD YOUR PROGRAM!
Paul T.
Post by tux
Dear,
[quoted text clipped - 24 lines]
Post by tux
Thanks in advance.
Paul G. Tobey [eMVP]
2008-02-15 17:37:30 UTC
Permalink
OK, so it's *not* really a console application. It's just an application
with no UI. That's no problem. My guess still is that some function call
that you're making, some library that you're linked with, etc. is
referencing a component that is not in the OS because you removed display
support. Common controls, for example. If you compile against the
dsplay-based SDK, it's no problem to call InitCommonControls(), link with
commctl.lib, and all runs fine. However, if you try to run that same EXE on
your headless device, there *IS NO COMMCTL.DLL*, so your application will
not be loaded (it's missing a dependency). Again, COMPILE FOR THE SDK OF
THE DEVICE AS YOU ARE USING IT, NOT WITH DISPLAY SUPPORT IN IT.

No, you don't have to use VS2005 to create an application with no graphical
support. I have a CE3-based device sitting on my desk right now that has
half-a-dozen applications written with eVC running on it. I also have a
CE42-based device sitting next to it which runs several no-UI programs
compiled with eVC. And next to that I have another device running Windows
CE 5.0 which, again, runs several programs that have no UI, some compiled
with VS2005 and others with eVC.

Paul T.
Post by tux
Hi,
I have a display only to debug the OS, in my final application I'll remove
that.
The OS is a Windows CE 5.0.
In particular the console application creates a TCP server(windows CE) while
the client (windows XP) runs on my desktop.
The client has to send some charchters to the server... very simple.
Both server and client are written in c# or in c++ in the previous
version.
Currently I'm working on c# version using Visual Studio 2005, of course the
client as "Console Application" choosing the kind of the project in the Smart
Device Section (File -> Add -> New Project -> Visual c# -> Smart Device ->
Windows CE 5.0 -> Console Application).
I added the console-application.exe in my OS and in the common.reg I launched
[HKEY_LOCAL_MACHINE\init]
IF IMGCELOGENABLE
; At most one CeLog flush app (CeLogFlush, OSCapture) can be used
IF IMGAUTOFLUSH
"Launch05"="CeLogFlush.exe"
ENDIF
IF IMGOSCAPTURE
"Launch05"="OSCapture.exe"
ENDIF
ENDIF
IF IMGNOKITL !
"Launch10"="shell.exe"
ENDIF IMGNOKITL !
"Launch20"="device.exe"
IF IMGNOKITL !
"Depend20"=hex:0a,00
ENDIF IMGNOKITL !
IF IMGKCOVER
"Launch25"="CoverSrv.exe"
ENDIF
"Launch30"="gwes.exe"
"Depend30"=hex:14,00
"Launch110"="console-application.exe"
"Depend110"=hex:14,00
This works only if I build my windows CE with the display, in fact if I build
using BSP_NODISPLAY or if I remove the registry keys of my display, the
server on windows ce doesn't start.
Without display I've checked that the OS runs pinging the target and it
answers!
By the way my objective is create an application without the graphical
support, and reading the MSDN I understood that I have use the Visual Studio
2005.
Thanks.
Post by Paul G. Tobey [eMVP]
You lost me. How are you going to have stuff on the screen if you have
no-display set? Your device has no display? What good would the console
be, then? You're going to redirect it to a serial port or something?
You say that your program, written with eVC, works with a display on the
device but not without. Did you recompile the program to target a new SDK
(one that was built in the no-display configuration)? You have to do that
or you might easily have dozens of things that you're doing or trying to do
in your code that are impossible because there is no display.
If you give us a better description of what this program is supposed to
*do*, we can probably advise you better on how to implement that. In all
cases, though, USE THE SDK FOR THE ACTUAL OS THAT IS RUNNING ON YOUR TARGET
DEVICE TO BUILD YOUR PROGRAM!
Paul T.
Post by tux
Dear,
[quoted text clipped - 24 lines]
Post by tux
Thanks in advance.
tux via PocketPCJunkies.com
2008-02-15 21:10:41 UTC
Permalink
Hello Paul,

this's the code of my server application:

using System;
using System.Collections.Generic;
//using System.Text;
using System.Net;
using System.Net.Sockets;

namespace newTCPSvrCE_console
{
public class newTCPSvrCe_console
{
public static void Main(string[] args)
{
try
{
IPAddress ipAd = IPAddress.Parse("192.168.0.109"); //use
local m/c IP address, and use the same in the client

/* Initializes the Listener */
TcpListener myList = new TcpListener(ipAd, 21210);

/* Start Listeneting at the specified port */
myList.Start();

// Console.WriteLine("The server is running at port 21210...")
;
// Console.WriteLine("The local End point is :" + myList.
LocalEndpoint);
// Console.WriteLine("Waiting for a connection.....");

Socket s = myList.AcceptSocket();
//Console.WriteLine("Connection accepted from " + s.
RemoteEndPoint);

byte[] b = new byte[100];
int k = s.Receive(b);
//Console.WriteLine("Recieved...");
for (int i = 0; i < k; i++)
//Console.Write(Convert.ToChar(b[i]));

//ASCIIEncoding asen = new ASCIIEncoding();
//s.Send(asen.GetBytes("The string was recieved by the server.
"));
//Console.WriteLine("\nSent Acknowledgement");
/* clean up */
//s.Close();
myList.Stop();

}
catch (Exception e)
{
//Console.WriteLine("Error..... " + e.StackTrace);
}

System.Threading.Thread.Sleep(10000); //attesa di 10 sec.
}
}
}

As you could see I erase call that maybe call graphical library, ia that
right?

thanks.
Post by Paul G. Tobey [eMVP]
OK, so it's *not* really a console application. It's just an application
with no UI. That's no problem. My guess still is that some function call
that you're making, some library that you're linked with, etc. is
referencing a component that is not in the OS because you removed display
support. Common controls, for example. If you compile against the
dsplay-based SDK, it's no problem to call InitCommonControls(), link with
commctl.lib, and all runs fine. However, if you try to run that same EXE on
your headless device, there *IS NO COMMCTL.DLL*, so your application will
not be loaded (it's missing a dependency). Again, COMPILE FOR THE SDK OF
THE DEVICE AS YOU ARE USING IT, NOT WITH DISPLAY SUPPORT IN IT.
No, you don't have to use VS2005 to create an application with no graphical
support. I have a CE3-based device sitting on my desk right now that has
half-a-dozen applications written with eVC running on it. I also have a
CE42-based device sitting next to it which runs several no-UI programs
compiled with eVC. And next to that I have another device running Windows
CE 5.0 which, again, runs several programs that have no UI, some compiled
with VS2005 and others with eVC.
Paul T.
Hi,
[quoted text clipped - 94 lines]
Post by tux
Thanks in advance.
--
Message posted via PocketPCJunkies.com
http://www.pocketpcjunkies.com/Uwe/Forums.aspx/wince-pb/200802/1
Paul G. Tobey [eMVP]
2008-02-15 21:30:03 UTC
Permalink
The fact that it's a managed code application *matters*. Did you build the
.NET Compact Framework *headless* version into your OS? Remember that, much
more than with native code, the .NET CF runtime is doing a *lot* of stuff
behind your back. It would not surprise me to find that, if you didn't
install the headless version of the CF on your device, by building it into
the OS, that ordinary program startup calls something like SetCursor() to
show a wait cursor, which won't be in your headless OS...

Paul T.
Post by tux via PocketPCJunkies.com
Hello Paul,
using System;
using System.Collections.Generic;
//using System.Text;
using System.Net;
using System.Net.Sockets;
namespace newTCPSvrCE_console
{
public class newTCPSvrCe_console
{
public static void Main(string[] args)
{
try
{
IPAddress ipAd = IPAddress.Parse("192.168.0.109"); //use
local m/c IP address, and use the same in the client
/* Initializes the Listener */
TcpListener myList = new TcpListener(ipAd, 21210);
/* Start Listeneting at the specified port */
myList.Start();
// Console.WriteLine("The server is running at port 21210...")
;
// Console.WriteLine("The local End point is :" + myList.
LocalEndpoint);
// Console.WriteLine("Waiting for a connection.....");
Socket s = myList.AcceptSocket();
//Console.WriteLine("Connection accepted from " + s.
RemoteEndPoint);
byte[] b = new byte[100];
int k = s.Receive(b);
//Console.WriteLine("Recieved...");
for (int i = 0; i < k; i++)
//Console.Write(Convert.ToChar(b[i]));
//ASCIIEncoding asen = new ASCIIEncoding();
//s.Send(asen.GetBytes("The string was recieved by the server.
"));
//Console.WriteLine("\nSent Acknowledgement");
/* clean up */
//s.Close();
myList.Stop();
}
catch (Exception e)
{
//Console.WriteLine("Error..... " + e.StackTrace);
}
System.Threading.Thread.Sleep(10000); //attesa di 10 sec.
}
}
}
As you could see I erase call that maybe call graphical library, ia that
right?
thanks.
Post by Paul G. Tobey [eMVP]
OK, so it's *not* really a console application. It's just an application
with no UI. That's no problem. My guess still is that some function call
that you're making, some library that you're linked with, etc. is
referencing a component that is not in the OS because you removed display
support. Common controls, for example. If you compile against the
dsplay-based SDK, it's no problem to call InitCommonControls(), link with
commctl.lib, and all runs fine. However, if you try to run that same EXE on
your headless device, there *IS NO COMMCTL.DLL*, so your application will
not be loaded (it's missing a dependency). Again, COMPILE FOR THE SDK OF
THE DEVICE AS YOU ARE USING IT, NOT WITH DISPLAY SUPPORT IN IT.
No, you don't have to use VS2005 to create an application with no graphical
support. I have a CE3-based device sitting on my desk right now that has
half-a-dozen applications written with eVC running on it. I also have a
CE42-based device sitting next to it which runs several no-UI programs
compiled with eVC. And next to that I have another device running Windows
CE 5.0 which, again, runs several programs that have no UI, some compiled
with VS2005 and others with eVC.
Paul T.
Hi,
[quoted text clipped - 94 lines]
Post by tux
Thanks in advance.
--
Message posted via PocketPCJunkies.com
http://www.pocketpcjunkies.com/Uwe/Forums.aspx/wince-pb/200802/1
tux via PocketPCJunkies.com
2008-02-16 09:35:13 UTC
Permalink
Yes I builded tha .NET CF in my OS, in fact when I build the image with the
display my applications works.

Sorry, but I don't understand why if in Visual Studio 2005 I choose a non
graphical appllication it doesn't work without display.

Please, could you give me an example of one application without UI?

thank you very much.
Post by Paul G. Tobey [eMVP]
The fact that it's a managed code application *matters*. Did you build the
.NET Compact Framework *headless* version into your OS? Remember that, much
more than with native code, the .NET CF runtime is doing a *lot* of stuff
behind your back. It would not surprise me to find that, if you didn't
install the headless version of the CF on your device, by building it into
the OS, that ordinary program startup calls something like SetCursor() to
show a wait cursor, which won't be in your headless OS...
Paul T.
Post by tux via PocketPCJunkies.com
Hello Paul,
[quoted text clipped - 93 lines]
Post by tux via PocketPCJunkies.com
Post by tux
Thanks in advance.
--
Message posted via http://www.pocketpcjunkies.com
tux via PocketPCJunkies.com
2008-02-16 10:09:15 UTC
Permalink
Yes I builded tha .NET CF in my OS, in fact when I build the image with the
display my applications works.

Sorry, but I don't understand why if in Visual Studio 2005 I choose a non
graphical appllication it doesn't work without display.

Please, could you give me an example of one application without UI?

thank you very much.
Post by Paul G. Tobey [eMVP]
The fact that it's a managed code application *matters*. Did you build the
.NET Compact Framework *headless* version into your OS? Remember that, much
more than with native code, the .NET CF runtime is doing a *lot* of stuff
behind your back. It would not surprise me to find that, if you didn't
install the headless version of the CF on your device, by building it into
the OS, that ordinary program startup calls something like SetCursor() to
show a wait cursor, which won't be in your headless OS...
Paul T.
Post by tux via PocketPCJunkies.com
Hello Paul,
[quoted text clipped - 93 lines]
Post by tux via PocketPCJunkies.com
Post by tux
Thanks in advance.
--
Message posted via PocketPCJunkies.com
http://www.pocketpcjunkies.com/Uwe/Forums.aspx/wince-pb/200802/1
tux via PocketPCJunkies.com
2008-02-16 10:42:36 UTC
Permalink
Yes I builded tha .NET CF in my OS, in fact when I build the image with the
display my applications works.

Sorry, but I don't understand why if in Visual Studio 2005 I choose a non
graphical appllication it doesn't work without display.

Please, could you give me an example of one application without UI?

thank you very much.
Post by Paul G. Tobey [eMVP]
The fact that it's a managed code application *matters*. Did you build the
.NET Compact Framework *headless* version into your OS? Remember that, much
more than with native code, the .NET CF runtime is doing a *lot* of stuff
behind your back. It would not surprise me to find that, if you didn't
install the headless version of the CF on your device, by building it into
the OS, that ordinary program startup calls something like SetCursor() to
show a wait cursor, which won't be in your headless OS...
Paul T.
Post by tux via PocketPCJunkies.com
Hello Paul,
[quoted text clipped - 93 lines]
Post by tux via PocketPCJunkies.com
Post by tux
Thanks in advance.
--
Message posted via PocketPCJunkies.com
http://www.pocketpcjunkies.com/Uwe/Forums.aspx/wince-pb/200802/1
tux via PocketPCJunkies.com
2008-02-16 11:34:26 UTC
Permalink
Yes I builded tha .NET CF in my OS, in fact when I build the image with the
display my applications works.

Sorry, but I don't understand why if in Visual Studio 2005 I choose a non
graphical appllication it doesn't work without display.

Please, could you give me an example of one application without UI?

thank you very much.
Post by Paul G. Tobey [eMVP]
The fact that it's a managed code application *matters*. Did you build the
.NET Compact Framework *headless* version into your OS? Remember that, much
more than with native code, the .NET CF runtime is doing a *lot* of stuff
behind your back. It would not surprise me to find that, if you didn't
install the headless version of the CF on your device, by building it into
the OS, that ordinary program startup calls something like SetCursor() to
show a wait cursor, which won't be in your headless OS...
Paul T.
Post by tux via PocketPCJunkies.com
Hello Paul,
[quoted text clipped - 93 lines]
Post by tux via PocketPCJunkies.com
Post by tux
Thanks in advance.
--
Message posted via PocketPCJunkies.com
http://www.pocketpcjunkies.com/Uwe/Forums.aspx/wince-pb/200802/1
Paul G. Tobey [eMVP]
2008-02-18 15:49:25 UTC
Permalink
You seem to be ignoring the most important part of my previous question:

Did you build the .NET Compact Framework ********HEADLESS******** version
into your OS?

You cannot expect the headed version of the framework to work on a headless
device!

Paul T.
Post by tux via PocketPCJunkies.com
Yes I builded tha .NET CF in my OS, in fact when I build the image with the
display my applications works.
Sorry, but I don't understand why if in Visual Studio 2005 I choose a non
graphical appllication it doesn't work without display.
Please, could you give me an example of one application without UI?
thank you very much.
Post by Paul G. Tobey [eMVP]
The fact that it's a managed code application *matters*. Did you build the
.NET Compact Framework *headless* version into your OS? Remember that, much
more than with native code, the .NET CF runtime is doing a *lot* of stuff
behind your back. It would not surprise me to find that, if you didn't
install the headless version of the CF on your device, by building it into
the OS, that ordinary program startup calls something like SetCursor() to
show a wait cursor, which won't be in your headless OS...
Paul T.
Post by tux via PocketPCJunkies.com
Hello Paul,
[quoted text clipped - 93 lines]
Post by tux via PocketPCJunkies.com
Post by tux
Thanks in advance.
--
Message posted via PocketPCJunkies.com
http://www.pocketpcjunkies.com/Uwe/Forums.aspx/wince-pb/200802/1
tux via PocketPCJunkies.com
2008-02-18 16:29:16 UTC
Permalink
Hello,

I'm sorry but I don't understand what do you mean, in fact I builded the
component ".NET Compact Framework 2.0" and "OS dependencies for .NET Compact
Framework 2.0".

Do I have to build a particular component or a particular UI-less application?


thanks.
Post by Paul G. Tobey [eMVP]
Did you build the .NET Compact Framework ********HEADLESS******** version
into your OS?
You cannot expect the headed version of the framework to work on a headless
device!
Paul T.
Post by tux via PocketPCJunkies.com
Yes I builded tha .NET CF in my OS, in fact when I build the image with the
[quoted text clipped - 24 lines]
Post by tux via PocketPCJunkies.com
Post by tux
Thanks in advance.
--
Message posted via PocketPCJunkies.com
http://www.pocketpcjunkies.com/Uwe/Forums.aspx/wince-pb/200802/1
Paul G. Tobey [eMVP]
2008-02-18 16:37:02 UTC
Permalink
There are two versions of the .NET Compact Framework 2.0 in CE5, headed (has
display and, potentially, keyboard), and headless (no display). If your
device is headless, you don't get to choose; you must use the headless one.
A quick review of the catalog will find the headless version and, since you
keep acting like you've never seen it, it's pretty clear that you have the
wrong one in your OS.

Applications and Services Development
.NET Compact Framework 2.0
.NET Compact Framework 2.0 - Headless

and

Applications and Services Development
OS Dependencies for .NET Compact Framework 2.0
OS Dependencies for .NET Compact Framework 2.0 - Headless

Paul T.
Post by tux via PocketPCJunkies.com
Hello,
I'm sorry but I don't understand what do you mean, in fact I builded the
component ".NET Compact Framework 2.0" and "OS dependencies for .NET Compact
Framework 2.0".
Do I have to build a particular component or a particular UI-less application?
thanks.
Post by Paul G. Tobey [eMVP]
Did you build the .NET Compact Framework ********HEADLESS******** version
into your OS?
You cannot expect the headed version of the framework to work on a headless
device!
Paul T.
Post by tux via PocketPCJunkies.com
Yes I builded tha .NET CF in my OS, in fact when I build the image with the
[quoted text clipped - 24 lines]
Post by tux via PocketPCJunkies.com
Post by tux
Thanks in advance.
--
Message posted via PocketPCJunkies.com
http://www.pocketpcjunkies.com/Uwe/Forums.aspx/wince-pb/200802/1
tux via PocketPCJunkies.com
2008-02-19 09:14:38 UTC
Permalink
Hello again,

thanks for your previuos replay, now I have the image builded with "headless"
feature.

I'm still having the same problem, I mean if I launch the server (see some
previous posts) with the display it works without no.
I mean when I build with the environmenthal variable BSP_NODISPLAY =1 the
server doesn't start, but if I ping my target it answers.

Other suggestions?
Do you have any example c++ or c# show me?
thank you very much.
Post by Paul G. Tobey [eMVP]
There are two versions of the .NET Compact Framework 2.0 in CE5, headed (has
display and, potentially, keyboard), and headless (no display). If your
device is headless, you don't get to choose; you must use the headless one.
A quick review of the catalog will find the headless version and, since you
keep acting like you've never seen it, it's pretty clear that you have the
wrong one in your OS.
Applications and Services Development
.NET Compact Framework 2.0
.NET Compact Framework 2.0 - Headless
and
Applications and Services Development
OS Dependencies for .NET Compact Framework 2.0
OS Dependencies for .NET Compact Framework 2.0 - Headless
Paul T.
Post by tux via PocketPCJunkies.com
Hello,
[quoted text clipped - 24 lines]
Post by tux via PocketPCJunkies.com
Post by tux
Thanks in advance.
--
Message posted via PocketPCJunkies.com
http://www.pocketpcjunkies.com/Uwe/Forums.aspx/wince-pb/200802/1
Paul G. Tobey [eMVP]
2008-02-19 15:15:30 UTC
Permalink
This has nothing to do with the content of the application, so C# code is
irrelevant. Build a DEBUG image of the OS and capture the debug messages
again. Remember that, when you change something really basic like whether
you're using .NET CF headed or headless, you should really do a Clean
Sysgen, not just Sysgen.

Paul T.
Post by tux via PocketPCJunkies.com
Hello again,
thanks for your previuos replay, now I have the image builded with "headless"
feature.
I'm still having the same problem, I mean if I launch the server (see some
previous posts) with the display it works without no.
I mean when I build with the environmenthal variable BSP_NODISPLAY =1 the
server doesn't start, but if I ping my target it answers.
Other suggestions?
Do you have any example c++ or c# show me?
thank you very much.
Post by Paul G. Tobey [eMVP]
There are two versions of the .NET Compact Framework 2.0 in CE5, headed (has
display and, potentially, keyboard), and headless (no display). If your
device is headless, you don't get to choose; you must use the headless one.
A quick review of the catalog will find the headless version and, since you
keep acting like you've never seen it, it's pretty clear that you have the
wrong one in your OS.
Applications and Services Development
.NET Compact Framework 2.0
.NET Compact Framework 2.0 - Headless
and
Applications and Services Development
OS Dependencies for .NET Compact Framework 2.0
OS Dependencies for .NET Compact Framework 2.0 - Headless
Paul T.
Post by tux via PocketPCJunkies.com
Hello,
[quoted text clipped - 24 lines]
Post by tux via PocketPCJunkies.com
Post by tux
Thanks in advance.
--
Message posted via PocketPCJunkies.com
http://www.pocketpcjunkies.com/Uwe/Forums.aspx/wince-pb/200802/1
unknown
2008-10-31 04:24:10 UTC
Permalink
Hi,
i have got a problem when i tried to write my first program in vs 2005. i want to write a c# smart device application. it always gives a error message "platform MyOSDesign has no devices". but i have already created the MyOSDesign and installed the SDK in my PC.if u know some thing about this please reply me.on this blog or directly to ***@yahoo.com.

thanks
Paul G. Tobey [eMVP]
2008-11-03 16:33:09 UTC
Permalink
You've told us only a fraction of the full story. You have a MyOSDesign SDK
installed? It's built with the SDK roller from what version of Windows
CE/Platform Builder? Try, when asking a question, to imagine everything we
might need to know about you, your system, the software installed on it,
etc. and give us that information in the *first* message.

Paul T.
Post by unknown
Hi,
i have got a problem when i tried to write my first program in vs 2005. i
want to write a c# smart device application. it always gives a error
message "platform MyOSDesign has no devices". but i have already created
the MyOSDesign and installed the SDK in my PC.if u know some thing about
thanks
Loading...