How translate this into C++ ?
SRichViewEdit1.NextCurItem([rvsPicture, rvsHotspot, rvsHotPicture]);
THX!
demo ActionTest
-
- Site Admin
- Posts: 17569
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
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:
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 */);