Stan Lippman's BLogC++/CLIFactor, Don't Complicate- June 4, 2004 A reader asks the following question, Sender: bv re: A Question about Copy Constructors in C++CLI Ok, i have a question. What happens if: suppose you want to make a shallow copy. Ex: ClassX obj(somePtr);internally obj.m_ptr = SomePtr; Now ClassX obj2(obj); What problems can occur in such cases because now neither obj nor obj2 owns the member ptr. so none should destroy them. And i want that, only obj should be able to modify the ptr and not obj2..http://blogs.msdn.com/slippman/archive/2004/06/04/148586.aspx Putting C++ and the CLI in Perspective- June 4, 2004 A surprising thread that has emerged has to do with libraries. Here is an representative example, Sender: Dobes ===================================== re: Towards a Natural Theory of Programming Languages I also think that the survival of a language is also more an issue of libraries than of language. I prefer Java because it has gui,threading, sockets, class loading, etc. all built in to the standard library. Since these are the primary features that...http://blogs.msdn.com/slippman/archive/2004/06/04/148517.aspx System::String -> std::string- June 2, 2004 A reader asks, Sender: Erik Brendengen Is there an easy way to convert from String to std::string Does String s = std::string( &8220;bla&8221;).c_str(); work the other way This is a FAQ, one that I myself bumped into when I had to pass a System::String retrieved from System::Windows::Forms::TextBox to a native program that expected a std::string. There are generally two conversion strategies,...http://blogs.msdn.com/slippman/archive/2004/06/02/147090.aspx |