Subject: Re: creating a log file readable using memo pad or notepad application
From: Matt Graham <[EMAIL PROTECTED]>
Date: Thu, 09 Sep 2004 12:35:40 -0400


Avinash Ponugoti wrote:

> Hello, I want to create a log file for my palm application which i
> want to be able to view using memo pad or note pad application how do
> i go about it. Any guidence will be appreciated.

It would be cool if the SDK came with like, the code to the Memo
application or something.

You could write to the HotSync log file. This can then be viewed from the [Log] button under HotSync, plus it is very easy to display in your program. The only problem is that it is quite small, so you can't write a large trace to it.


For example:
void WriteLogEntry (const Char *text, Boolean isAppend = true);  // declaration

// function
void WriteLogEntry (const Char *text, Boolean isAppend) {
        DlkSetLogEntry(text, StrLen (text), isAppend);
        DlkSetLogEntry("\n", 1, true);
}


Then you can the DlkGetSyncInfo() function (which is documented) to retrieve the entire log file.


Roger Stringer
Marietta Systems, Inc. (www.rf-tp.com)


-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Reply via email to