I know this sounds like a dumb question; but I've been searching for this for a minute here; and I've seen a lot of conflicting answers. You guys always set me straight; so I'm just going to ask:
what's the easiest, most efficient way to pull two characters from the front of a managed String^ ??? This is very easy using std::string; but with managed Strings I've found lots of different answers.
If you've got some extra time, it would be cool also to know what some other techniques are for pulling substrings from String^ s .. There's apparently ways you can pull specific character sequences; but I'm more concerned ATM with just pulling two characters from the beginning.
String^ sourceComputerSubstr = sourceComputer->Substring(0, 2);

Parameter name: length' exception ... what am I doing wrong?
thanks in advance =]
This post has been edited by hexagod: 19 June 2018 - 07:56 AM