OwnedArray <StringArray> k;
int res;
res = db->getData (k);
for (int x=0; x<k.size(); x++)
{
StringArray *p = k[x];
log (p[0]);
}
this works, i can’t access the StringArray *p data, it’s a ponter and the p[0] conversion does not work:
C:\atm\devel\hwinv\dbPreview.cpp(34) : error C2664: 'writeToLog' : cannot convert parameter 1 from 'class juce::StringArray' to 'const class juce::String &'
Reason: cannot convert from 'class juce::StringArray' to 'const class juce::String'
No constructor could take the source type, or constructor overload resolution was ambiguous
should i carete a copy from the “p” pointer, if so how ?