Is it possible to make an API function to return more than one values?

I would like to know if there are some methods could make an C/C++ API function to return more than one values?

I ask that because I found some API functions have a syntax like this:


LNSTATUS CreateIcon( LNNote *newicon )

LNSTATUS CreateIcon( const LNNote &icon, LNNote *newicon = 0 )

Arguments

icon

Input, reference to LNNote representing the icon to be copied into the database.

newicon

Output, pointer to LNNote representing the new icon. Optional in version that copies an icon.


The functions receive servral parameters, some of them are inputs and some of them are outputs.

So I wonder if i could do the same thing between API and Notes.

Thanks for any ideas and suggestions

Subject: Sure

But typically watch out for other parameters than standard types such as INT, LONG, CHAR and CHAR *. You typically need to have a length param if you work with string pointers. Your function can fill as much as it want

Bob

Proud Programmer!

Subject: RE: Sure

Do you mean I can do it like this in LotusScript?


declare function Func1(byval input1 as string, byval input2 as string, byval output1 as string, byval outputlen1 as integer, byval output2 as string, byval outputlen2 as integer) as string


Rgds,

Frank