About array of BSTR
C / C++ / MFC
2
Posts
2
Posters
0
Views
1
Watching
-
I have this function..
void MyFunction(BSTR* param, int nArraySize);
and I'm supposed to pass an array of string ("String1", "String2", "String3") as param. How can I do this?
BSTR str[10];
for (int i = 0; i < 10; ++i)
str[i] = ::SysAllocString(_T("String"));MyFunction(str, 10);
«_Superman_» I love work. It gives me something to do between weekends.
Microsoft MVP (Visual C++)