none
C++ CLR RRS feed

  • General discussion

  • Why was C++ CLR made so god damned retarded? And why must forms be dependent on it?

    For example, System::String.  I have never seen a more difficult to use class in my life. Why couldn't you just use std::string like normal people? Wow.
    Monday, November 17, 2008 7:30 AM

All replies

  • I do see something retarded here but it's not C++/CLI...
    Monday, November 17, 2008 9:38 AM
  • You'd better steer clear from Windows Forms if System::String is hard to figure out.  You could use MFC.  Oh, wait, it uses CString.  Or wxWidgets.  Oh, wait, it uses wxString.  Erm, ActiveX is a solution.  Oh, wait, it uses BSTR.  Well ATL wraps that pretty well.  Oh, wait, it uses _bstr_t.  Seems like nobody likes std::string.  Maybe it's because it can't accurately reproduce text in the languages used by well over half of the world's population.
    Hans Passant.
    Monday, November 17, 2008 12:41 PM
    Moderator
  •  How about std::wstring?

    There we go, that was easy.
    Tuesday, November 18, 2008 5:36 AM