I am reading in datasets from a H5 file in Microsoft Visual C++ 2008. Everything works fine for data of type int and double but I run into problems when I come across string
You need to allocate memory for the full strings, the library won't do it for you. You should replace
char *buffer1[18];
by
char buffer1[18][24];
and
datasetCurveNames.read(&buffer1, strdatatype);
should be
datasetCurveNames.read(buffer1, strdatatype);
(no &)
&