[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.dotnet.framework.sdk

Passing CString from Managed to Unmanaged C++

Garry Harrison

8/27/2002 5:28:00 PM

I have created a Managed C++ Proxy wrapper for an Exported
class in a VC6 DLL

The class contains a function which as the following const
CString& parameter

When i call this function and pass a CString from the
managed C++ class as follows

CFoo Foo = new CFoo;

CString Text;
Foo->Func( Text );


I get the following unresolved external link error

ATL::CStringT<char,class StrTraitMFC<char,class
ATL::ChTraitsCRT<char> > > const &

What is the correct syntax
1 Answer

(Yan-Hong Huang[MS])

8/28/2002 8:12:00 AM

0

This KB is what you want. :)

PRB: Linking Errors When You Import CString-Derived Classes [vcnetkb]
ID: Q309801

Best regards,
yhhuang
VS.NET, Visual C++
Microsoft

This posting is provided "AS IS" with no warranties, and confers no rights.
Got .Net? http://www.got...