locked
how to convert char array to LPCTSTR RRS feed

  • Question

  • trying to create a directry in WINCE7.0 mounted volume using c++. using Unicode Character Set. code is as follows ...

    char

    FolderPath[20]="\\Mounted Volume\\PMS48";

    LPCTSTR lpPathName = (LPCTSTR)FolderPath;

    if(NULL == CreateDirectory(lpPathName,NULL))

    {

    PMS_LOG(1, (L

    "\n CreateDir failed  \n"));

    }

    else

    {

    PMS_LOG(1, (L

    "\n CreateDir success \n"));

    }

      But folder is creating in "\\"  location  with junk name.please  help me ....

    Friday, June 1, 2012 9:58 AM

Answers

All replies