Join Now
Quality Rating:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)
Expertise Level:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)

This page was last modified 16:40, 24 April 2008.

Helloworld em modo console

From Forum Nokia Wiki

Exemplo do Hello World em modo Console para Symbian OS.

#include <e32base.h>
#include <e32cons.h>
 
TInt E32Main()
{
	CConsoleBase* gConsole; // Criação do console
	_LIT(KTituloConsole, "Aplicação console"); 
	_LIT(KOlaMundo, "Ola Mundo!");
	gConsole = Console::NewL(KTituloConsole, TSize(KConsFullScreen,KConsFullScreen)); // Instancialização do console
	gConsole->Printf(KOlaMundo); 
	User::After(100000000); // pausa a aplicação por 100000000 microsegundos.
 
	return 1;
}

Mesmo exemplo na linguagem C para desktop.

int main()
{
	const char* olaMundo = "Ola Mundo!";
	printf(olaMundo);
	return 1;
}
Related Discussions
Thread Thread Starter Forum Replies Last Post
How to clear the screen marlar Python 9 2008-01-04 15:56
another abld makefile vc6 problem ps01228 Symbian Tools & SDKs 1 2003-04-30 04:33
console application 3rd ed. on target sym_starter General Symbian C++ 5 2006-10-11 16:13
Can't run helloworld in emulator. Ask for more. everest83 General Symbian C++ 6 2003-05-08 09:29
How to execute a .exe? Kozak17 General Symbian C++ 6 2005-01-04 15:12
 
Powered by MediaWiki