CStrings and managed Code

  • Thread starter Thread starter Doug Bailey
  • Start date Start date
D

Doug Bailey

I have an application in which some unmanaged classes are being pulled
into a Managed Windows Form application. The umanaged class has a
number of CString variables.

When I link the program, I get the following error:

LINK : error LNK2020: unresolved token (0A000039)
ATL.CStringT said:

I have tried to turn off the /clr switch for the unmanaged classes CPP
file but the compile errors out immediately.
(cCamera.cpp(0) : fatal error C1190: managed targeted code requires
'#using <mscorlib.dll>' and '/clr' option)

Any ideas as to where I can find the CSTring template destructor?

Thanks
Doug Bailey
 
Never mind. The problem turned out that the mfc71d.lib was not being
pulkled in by the linker.

Sorry to waste the space.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top