| | |
assigning a TCHAR char array to std::string
![]() |
UNICODE is the default setting for that compiler so if you didn't turn it off then the compiler is mapping TCHAR into wchar_t. go to Project --> Properties (bottom menu item) --> Configuration Properties --> General then change Character Set option to Not Set. If you really do want UNICODE then you have to use one of the conversion functions to convert wchar_t* to char*
Last edited by Ancient Dragon; Sep 20th, 2007 at 9:41 am.
Don't PM me with questions -- you might get a nasty PM in response. If you have a question then post it in one of the forums.
•
•
Join Date: Aug 2007
Posts: 18
Reputation:
Solved Threads: 0
•
•
•
•
UNICODE is the default setting for that compiler so if you didn't turn it off then the compiler is mapping TCHAR into wchar_t. go to Project --> Properties (bottom menu item) --> Configuration Properties --> General then change Character Set option to Not Set. If you really do want UNICODE then you have to use one of the conversion functions to convert wchar_t* to char*
i want to do in UNICODE only so can u suggest me those conversion functions??
![]() |
Similar Threads
- One line of code copy char array using pointers (C++)
- Scan File for Comments (C++)
- TCHAR to std::string (C)
- Comparing two letters in one string with another char string? (C)
- first cannot conver std::string to const char, now runtime error! (C++)
- How to find End of file (C++)
- converting std::string to const chars? (C++)
- How to assign my own numeric values to a char array? (C++)
- two-dimensional char array (Java)
Other Threads in the C++ Forum
- Previous Thread: help with list view
- Next Thread: Terminal size
| Thread Tools | Search this Thread |
api array based binary bitmap c++ c/c++ char class classes classified code coding compatible compile console conversion count date delete deploy desktop developer directshow dll download dynamic dynamiccharacterarray email encryption error file filewrite forms fstream function functions game givemetehcodez graph gui homeworkhelp homeworkhelper homeworksolutions iamthwee icon if...else ifstream input int integer java lib linkedlist linker loop looping loops map math matrix memory multiple news node object output play pointer problem program programming project python random read recursion reference rpg string strings struct symbol temperature template test text text-file toolkit tree url values variable vector video win32 windows winsock wordfrequency wxwidgets






