LPCTSTR ends at space

This is a discussion on LPCTSTR ends at space within the C++ Programming forums, part of the General Programming Boards category; I'm trying to convert STD:: basic_string<TCHAR> to LPCTSTR. It works, but the result ends at the first space in the ...

I don't recommend TCHAR's, but just to correct the above code:
You have to use the TEXT("") macro for TCHAR string literals. This will put the necessary "L" in front of the literal in case TCHAR resolves to wchar_t.

I don't recommend TCHAR's, but just to correct the above code:
You have to use the TEXT("") macro for TCHAR string literals. This will put the necessary "L" in front of the literal in case TCHAR resolves to wchar_t.

If I seem grumpy or unhelpful in reply to you, or tell you you need to demonstrate more effort before you can expect help, it is likely you deserve it. Suck it up, Buttercup, and read this, this, and this before posting again.