Home  
Google
 
Web SymbianCoder.com

User login

Who's online

There are currently 0 users and 6 guests online.

Syndicate

XML feed

Using ini files to store application's settings

Most applications need some way to store persistent data. In most cases, the use of ini files is the easiest way to achieve this. Here's a simple setting class providing both loading and storing methods.


[Settings.h]

#ifndef SETTINGS_H
#define SETTINGS_H

#include // CBase
#include // TBool

class CApaApplication;

class CSettings : public CBase

Starting an exe on boot

This snippet shows how to start an exe on boot, using the Startup List Management API.
May be applied to any other (including UI based) program.

List running processes and threads

To get a list of running processes, use TFindProcess instead.


[Snippet]

LOCAL_C void ListThreadsL()
{
_LIT(KTitle, "ThreadList");
CConsoleBase* console = Console::NewL(KTitle, TSize(KDefaultConsWidth, KDefaultConsHeight));
CleanupStack::PushL(console);

TFindThread find;
TFullName name;
TInt numThreads = 0;

while (find.Next(name) == KErrNone)
{

Thread death notifier

This snippet shows how to implement a thread death notifier class.

Simple EXE program

This snippet shows a basic console program. Differences with respect to previous Developer Platforms can be seen in the MMP and PKG files.

Build instructions:

bldmake bldfiles
abld build gcce urel
makesis test.pkg
signsis test.sis test.sisx yourcert.cer yourkey.key password

© 2006 SymbianCoder.com