Want to use string class in C++ console app

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

I created a C++ console application (.Net) and wanted to use string class
instead of wchar_t. I included <string.h> and declared a variable as string
data type. But compiler didn't recognize string class. What else should I do?

Thanks in advance!!!
Cindy
 
Cindy Liu said:
I created a C++ console application (.Net) and wanted to use string class
instead of wchar_t. I included <string.h> and declared a variable as
string
data type. But compiler didn't recognize string class. What else should I
do?

You'll find the C++ types hanging out in

microsoft.public.dotnet.languages.vc

You should post again there. When you do, state whether you are targeting
Win32 or the .Net platform (when you write .Net I'm not sure if that refers
to the tool or the platform).

It's always a good idea to post the exact text of the error message that you
get.

Regards,
Will
 

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