Page 1 of 1

demo ActionTest

Posted: Sun May 04, 2008 8:33 pm
by ango
How translate this into C++ ?
SRichViewEdit1.NextCurItem([rvsPicture, rvsHotspot, rvsHotPicture]);
THX!

Posted: Mon May 05, 2008 5:20 pm
by Sergey Tkachenko
This function has open array (of integer) as a parameter.
It is translated to C++ as 2 parameters: (1) a pointer to array and (2) size (minus 1):
bool __fastcall NextCurItem(const int * StyleNo, const int StyleNo_Size);
So it should be:

Code: Select all

int styles[] = { rvsPicture, rvsHotspot, rvsHotPicture };
SRichViewEdit1.NextCurItem(styles, 2 /* array size -1 */); 

Posted: Tue May 06, 2008 8:41 am
by ango
Sergey Tkachenko wrote: SRichViewEdit1.NextCurItem(styles, 2 /* array size -1 */); [/code]
Thank you!
But,
SRichViewEdit1->NextCurItem(styles, 2 /* array size -1 */);[/code]
:D