Groups | Blog | Home
all groups > visual studio .net general > january 2006 >

visual studio .net general : The unmanaged c++ class has CString, how to write managed c++ wrap


Richard
1/27/2006 7:52:02 AM
Hi,

I have existing c++ class library (.lib file). My existing c++ class uses
MFC CString. I am trying to learn how to write a managed c++ wrapper for the
existing c++ class library and how to set project configuration correctly so
I don't have linking errors.

Do you know any good books or any websites that show how to write managed
c++ wrapper for existing unmanaged c++ class library? How to set the project
configuration correctly when the unmanaged c++ code contains CString member
variable so I don't have linking errors.

Gerry Hickman
1/31/2006 12:05:46 AM
Hi,

Have you read the documentation? You'll find a lot of information about
how to make calls to unmanaged code and general interop topics in the
Visual C++ docs.

You don't say which version of VS.NET you are using, but if you're using
VS2005 you may want to look at "Visual Studio : Visual C++ : Programming
Guide : Native and .NET Interoperability" or search on Google.

Quite way anyone would want to use Clunky managed code that only runs on
Windoze is beyond me, but there you go...

[quoted text, click to view]


--
AddThis Social Bookmark Button