string source;
char *src = (char*)(source.c_str());
LPCWSTR lpszsrc = (LPCWSTR)src;
Handle h= CreateFile(lpszsrc,.........);
if(h==INVALID_HANDLE)
printf("Error occured")
return 0;
The above code segment always shows invalid file handle.I know the reason is my LPCWSTR conversion is not correct.How to make it correct.?