your m_message.lpszSubject is a char*, and the subject is a TCHAR* which under unicode build becomes a wchar* - so thats yoru first error.

use WideCharToMultiByte to convert subject to a char*

once you get this working, you will solve all your other errors in a minute -

hth.