error C2664: '_access' : cannot convert parameter 1 from 'TCHAR [260]' to 'const char *'
-
Hi all, Actually i want to find out that particular path exist or not, for that i am using _accessApi. like this
TCHAR CurrentPath [ MAX_PATH ] ;
GetTempPath(MAX_PATH, CurrentPath);
_tcscat(CurrentPath,_T("$insert\\new folder"));_access(CurrentPath,NULL);
but compiler is giving this error error C2664: '_access' : cannot convert parameter 1 from 'TCHAR [260]' to 'const char *' how could i remove this
-
Hi all, Actually i want to find out that particular path exist or not, for that i am using _accessApi. like this
TCHAR CurrentPath [ MAX_PATH ] ;
GetTempPath(MAX_PATH, CurrentPath);
_tcscat(CurrentPath,_T("$insert\\new folder"));_access(CurrentPath,NULL);
but compiler is giving this error error C2664: '_access' : cannot convert parameter 1 from 'TCHAR [260]' to 'const char *' how could i remove this
You should use _taccess instead (it is also a macro that doesn't depend if UNICODE is declared or not).
Cédric Moonen Software developer
Charting control [v1.3]