I am getting a compile error while I am trying to initialize a long variable.
long return_val;
HKEY register_key;
LPTSTR REGISTRY_KEY_FM =
#if FDK_LIBRARY_VERSION==0x13000000
_T("RL13.FR.Document");
#elif FDK_LIBRARY_VERSION==0x09000000
_T("RL9.FR.Document");
#elif FDK_LIBRARY_VERSION==0x08000000
_T("RL80.FR.Document");
#endif
return_val = HKEY_CLASSES_ROOT, REGISTRY_KEY_FM, 0, KEY_QUERY_VALUE, ®ister_key);
The error message in the last line is "value of type "long" cannot be used to initialize an entity of type LPTSTR"
I am using Visual studio 2017 and also tried with visual studio 2013, but the error is same. However not getting the message in VS 2010. is there some type casting issue with the compiler of VS 2013 and VS2017? How to overcome this issue?