Click here to Skip to main content
15,885,914 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
error C2664: 'RFX_Long' : cannot convert parameter 3 from 'CString' to 'long &'
Posted
Comments
[no name] 14-Oct-14 7:46am    
It means just what it says.

1 solution

This is from the MSDN documentation: http://msdn.microsoft.com/en-us/library/vstudio/s5b150wd%28v=vs.100%29.aspx[^]

'RFX_Long' : cannot convert parameter 3 from 'CString' to 'long &'

So what does this mean then? You obviously passed a parameter ( the third one) to RFX_Long and what you passed was of type CString, but a reference to a long was expexted plus there is no conversion possible from a CString to a reference to a long.

What exactly is a reference to a long?
Any legal expression allowed as the lefthand side of an assignment statement where the assigned part (righthand side) has the type long will do.

Cheers!
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900