PDA

View Full Version : [C#] console application


CL4UD1O83
10-09-2008, 11:34
ciao a tutti,
ho appena iniziato a programmare in C# perchè dovrei sviluppare un'applicazione per uno smartphone ma ho un problema. se scrivo un'applicazione di tipo console e la lancio sullo smartphone non succede niente: ora io ho pensato che il problema può essere che la finestra venga chiusa immediatamente e non faccio in tempo a vederla quindi ho messo una readline fittizia ma non cambia nulla. ho provato a mettere anche un loop infinito a fine codice ma il risultato è stato quello di far crashare il telefono...dato che l'applicazione gira sull'emulatore chi mi sa dire perchè sullo smartphone non funziona e soprattutto cosa devo fare per farla funzionare? grazie

fdfdfdddd
10-09-2008, 13:49
Non credo proprio che gli smartphone supportino applicazioni di tipo console :-)

^TiGeRShArK^
10-09-2008, 14:10
e non gira nemmeno il .net sugli smartphone.
Al massimo gira il .Net compact sugli smartphone windows mobile based.

variabilepippo
10-09-2008, 14:24
Da MSND:


Non-Graphical and Console Applications

When creating a smart device project, the Smart Device Application Wizard provides the option to create a non-graphical application when targeting the Pocket PC; but when targeting Windows CE, it offers the option to create a console application instead.

Pocket PC

The Pocket PC does not have the concept of a console window. All applications must either provide a graphical window or be invisible. In the .NET Compact Framework, a non-graphical application is programmed similarly to a console application, with the exception of not supporting user I/O. The application is created without a form, and therefore cannot receive windows messages. Non-graphical applications are useful for performing background processing that does not require user interaction.

Windows CE .NET

Windows CE .NET supports a console window, and therefore supports the development of console applications that use text-based I/O. The application is created without a form, and therefore cannot receive windows messages. The application can, however, use the members of the Console class to interact with the user.

CL4UD1O83
10-09-2008, 21:49
Non credo proprio che gli smartphone supportino applicazioni di tipo console :-)

io sono principiantissimo...però quando creo un nuovo file scelgo console application per windows mobile 6 quindi se l'hanno fatto dovrebbe girare (penso io!) e l'emulatore che uso è quello del windows mobile 6 sdk