zop123 wrote:
=(char *)lParam; //there is a compile error in VC2005 unicode
What is the error ? Perhaps you need to use TCHAR ? I believe that the CString class turns itself into a unicode class for unicode builds, you could use _bstr_t to do a conversion for you, if this is indeed a char * in a unicode build ( so, then TCHAR would break it obviously ).