[quote user="Jesper Stahl Madsen"]
for (; iter!=end; iter++);
{
DgnTextStyleP tsP = (*iter);
WString sName = tsP->GetName();
}
[/quote]
Even if it did compile, it will not do what you expect at run-time.
The semi-colon in red means that the for loop has no content: all it does is attempt to increment the iterator.
The content of the braces {} is executed exactly once: it's not controlled by the loop.