How to operate ini file in Symbian

xiaoxiao2021-03-06  21

Void CMYUI :: ConstructL () {

Baseconstructl ();

RFS FIference = Document () -> Process () -> fssession ();

CDICTIONARYSTORE * STORE = Application () -> OpenInifilelc (FileESession);

IF (Store-> IsPresentl (KKEY1UID)) {

RDictionaryReadstream in;

In.openlc (* Store, KKey1UID);

In >> * iMyconfig;

Cleanupstack: OpandDestroy ();

} else {

iMyconfig-> setDefault ();

RDictionarywritestream out;

Out.assignlc (* Store, KKey1UID);

Out << * iMyconfig;

Out.commitl ();

Cleanupstack: OpandDestroy ();

Store-> CommitL ();

}

Cleanupstack: OpandDestroy ();

// ...

}

转载请注明原文地址:https://www.9cbs.com/read-39757.html

New Post(0)