Thanks for the snippet. You need to declare the string for [font=courier][color=blue]myStr[/color][/font] without deleting.
[font=courier][color=blue]
void CGuitest::gui(IfmDocument pDoc){
if (num_ElementalRefDistr != 0){
char myStr[64] = {0};
DebugBreak();
IfmGetElementalRefDistrName(pDoc, 0, myStr);
DebugBreak();
string str(myStr);
QString str = QString::fromUtf8(myStr);
IfmInfo(pDoc,myStr);
//delete myStr;
}
}
[/color][/font]
In addition, you need to give a name for the variable [font=courier][color=blue]myStr[/color][/font] in your code. The name give should correpsond to the name of the distribution you see in the GUI (e.g. "Elemental Distribution 1").