Does PtSetResource support string?

Hi,
I’m writing a C++ application, so I’m trying to use strings instead of character arrays/pointers. However, I’m not sure if QNX really supports strings. For example:

This works:

char buffer[MAX_INFO_SIZE] = "N/A"; PtSetResource(ABW_MyLabel, Pt_ARG_TEXT_STRING, buffer, 0);

But this does not:

string s = "N/A"; PtSetResource(ABW_MyLabel, Pt_ARG_TEXT_STRING, buffer, 0);

The error given in the second case is “invalid cast from type std::string to type long int”.
Does that mean I’m stuck to using character arrays?

Thanks!

s.c_str()

Thank mario!