我有CString SearchString[]
在 C++中接收的方法
我想获取该数组的大小以在 for 循环中进行迭代,如果没有,那么有人可以建议如何将此数组转换为CStringArray
.
#include <string>
using namespace std;
void myFunction(HWND shwnd, CString SearchString[], BOOl Visible)
{
//how do i get the size of "SearchString" here;
// I do not know how much it is populated, there might be one, two or three strings
}
int main()
{
CString Header[12];
BOOL bVisible;
myFunction(shwnd,Header,bVisible);
return 0;
}