I have file looking something like this
This code should is supposed to show me a messagebox with content of strings between "|$|",
But its giving weird output. I'm guessing it has to do something with positions, but dunno what.
btw... strToStr() is converting from std::string to String and vice versa.
String ^ message;
size_t pos, pos2;
pos = line.find("|$|");
while (pos < line.rfind("|$|"))
pos2 = line.find("|$|", pos+3);
part = line.substr(pos+3, pos2);
pos = pos2;
message = String::Concat(message, strToStr(part),"\n");
MessageBox::Show(message, "You have");