error C2440: '': cannot convert from '_Ty2' to 'CString'

03/30/2020 12:03 jericho2nd#1
error C2440: '': cannot convert from '_Ty2' to 'CString'
03/30/2020 12:21 Naltalah#2
[Only registered and activated users can see links. Click Here To Register...]

Every compile error is listed in the MSDN. Basically this error is telling you that a data-type can't be converted to CString.

Without seeing the code that throws this error, we won't be able to tell you why exactly it doesn't work.
03/30/2020 12:45 jericho2nd#3
Quote:
Originally Posted by Naltalah View Post
[Only registered and activated users can see links. Click Here To Register...]

Every compile error is listed in the MSDN. Basically this error is telling you that a data-type can't be converted to CString.

Without seeing the code that throws this error, we won't be able to tell you why exactly it doesn't work.
here the code
Code:
if (script.Token == _T("title"))
				{
					script.GetToken(); // (
					script.GetToken();
					szpName = CString(CScript::m_mapString.find(script.token)->second);
					script.GetToken(); script.GetToken();
				}
03/30/2020 12:50 Naltalah#4
I won't give you the solution, try to figure it out on your own.
Just try different approaches and you will get to it eventually.

This forum is to get help, not free solutions after all.

Just try to look at the MSDN and figure out why your code doesn't work.
03/30/2020 12:57 jericho2nd#5
Quote:
Originally Posted by Naltalah View Post
I won't give you the solution, try to figure it out on your own.
Just try different approaches and you will get to it eventually.

This forum is to get help, not free solutions after all.

Just try to look at the MSDN and figure out why your code doesn't work.
I solve thanks to you! :)