| « Doing good by doing well | The new Iphone 3G"Ass" » |
C-api help on one of the samples
Recently this admin has been developing a nice app (if it ever reaches beta stage I might even put it on OpenNTF) with the Notes C-Api.
As my development skills can be described as "rusty", it's not all that easy.
I've been playing with the "find_dbs.c" sample, which I can't post in total because of license issues, but I'll post a sample.
The thing is, my ITEM_NUMBER items all come down to a 0. A numeric 0.
Not the value you'd expect for the following items (items marked in bold appear strange to me):
The code:
Can anyone shine a light on this for me?
I'm using the latest version of the C-Api that can be downloaded here.
As my development skills can be described as "rusty", it's not all that easy.
I've been playing with the "find_dbs.c" sample, which I can't post in total because of license issues, but I'll post a sample.
The thing is, my ITEM_NUMBER items all come down to a 0. A numeric 0.
Not the value you'd expect for the following items (items marked in bold appear strange to me):
$TITLE: _homepage.nsf $Path: _homepage.nsf $Type: $NOTEFILE $Modified: 15-04-2009 21:49:32 $Length: 0 $Info: Homepage (8.5) $LinkInfo: $DBOPTIONS: 0 $DBVERSIONS: 0 $DBCREATED: 11-06-2008 18:44:43 $LASTFIXUP: 04-06-2009 11:12:18 $QUOTALIMIT: 0 $QUOTAWARNING: 0 $MAXDBSIZE: 0 $PHYSICALPATH: D:\Domino\data\_homepage.nsf $ISLOGGED: 0 $Length2: 0 $DBOPTIONS2: 0 $DBOPTIONS3: 0 $DBOPTIONS4: 0 $DATAMOD: 15-04-2009 21:49:32 $NONDATAMOD: 15-04-2009 21:49:31 $CURRENTUSAGE: 0 $STORAGEPATH: D:\Domino\data\_homepage.nsf $ReplFlags: 0 $DAOSSTATE: 0 $DAOSOBJCOUNT: 0 $DAOSSTOREDBYTES: 0 $DAOSSYNCPOINT:
The code:
/* Extract a number item from the summary. */ case TYPE_NUMBER: memcpy (&numeric_item, summary_position, NUMERIC_SIZE); sprintf (item_text, "%g", numeric_item); break;
Can anyone shine a light on this for me?
I'm using the latest version of the C-Api that can be downloaded here.