CLR Questions

Aug 15, 2011 at 6:00am
hi guys
how can i use System::String^ and array<> to STL ?
for emample :

String^ str = "....";
array<char>^ ar = ....;
cliext::sort( .... ) ???!!!! how tu send str or ar to sort algorithm
Aug 15, 2011 at 6:19am
If you want to use CLR then learn the .Net framework. The framework has its own sorting and its own array class. I am no expert but what you seem to want is mix System::String with tr1::array<>. Why?? To sort? Again, .Net has sorting facilities, as well as an array class and a bunch of other classes too.

The best you can do is decide: Use CLR or use unmanaged C++. There will be times when you want to mix them, but I don't think this is one of those.
Aug 15, 2011 at 7:51am
this was one example!!! i want use permutaion and ... of algorithm how can i send String^ or array to STL\Clr ? tnx
Aug 15, 2011 at 5:54pm
I see. Well, I still am no expert in C++/CLI, and before I mess up, I'd rather tell you to post your CLI questions @ http://social.msdn.microsoft.com/forums .
Aug 15, 2011 at 5:56pm
this forum is for CLR !! but tnx
Aug 15, 2011 at 6:00pm
Really? Because I have been around for a few years and pretty much we all see unmanaged C++. AFAIK, this is Windows programming, but that doesn't necessarily mean CLR.
Aug 15, 2011 at 6:45pm
i dont know but write in this page http://www.cplusplus.com/forum/ this forums for win, clr, ... :-??
Aug 16, 2011 at 2:37am
Ah, look at that! I did not notice that. I guess it was changed when C++/CLI became more popular. Still, there aren't many experts on C++/CLI here yet. You might still want to consider the MSDN forums.
Topic archived. No new replies allowed.