> > TCHAR is a microsoft specific typedef for either char or wchar_t (or
perhaps unsigned short knowing these clowns). It's a single
character, not a string. You'd be better off asking on
microsoft.public.vc.mfc but show a better example there of what you
are trying to do.
oops sorry its actually a static TCHAR[]....eg.
static TCHAR hdrs[] = _T("Content-Type:
application/x-www-form-rlencoded");
At this juncture we frequently find ourselves reminding newbies...
- try on news:microsoft.public.vc.mfc
- learn C++ first before learning MFC. (MS should
have followed that one.)
- try on news:microsoft.public.vc.mfc
- don't use TCHAR unless you intend to turn on the
magic UNICODE option, which you probably won't.
- try on news:microsoft.public.vc.mfc
- Use a CString. It will match TCHAR's type, and
it has the common set of string operations
- try on news:microsoft.public.vc.mfc
- post some of /your/ code - we know what a
TCHAR looks like
- try on news:microsoft.public.vc.mfc
- if you absolutely must use std::string, yield its
char const * using myString.c_str()
- try on news:microsoft.public.vc.mfc
Are you starting to see any subtle hints in my post?
--
Phlip
http://www.greencheese.org/BrunoTheBandit
-- The smoker you drink, the programmer you get --