Dennis' Domino Blog
« Doing good by doing wellThe new Iphone 3G"Ass" »

C-api help on one of the samples

Permalink 06/23/09 10:47, by Dennis van Remortel, Categories: Lotus, Development
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):

$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.

No feedback yet

Leave a comment


Your email address will not be revealed on this site.

Your URL will be displayed.
PoorExcellent
(Line breaks become <br />)
(Name, email & website)
(Allow users to contact you through a message form (your email will not be revealed.)
What Lotus product is discussed mainly here? The answer is domino
antispam test
Yet another Domino/Websphere Admin blog.

About me:
Lotus Notes/Domino Admin
Websphere Commerce Admin
sceptic
critic



Search

XML Feeds

Planet Lotus

blogsoft

©2012 by Dennis van Remortel

Contact | Blog template by Asevo | blog tool | dedicated servers | authors