none
cannot convert parameter 4 from 'const char *' to 'LPCWSTR'_

    Question

  • I get this error:
    cannot convert parameter 4 from 'const char *' to 'LPCWSTR' 

    when I do:

     

    if ( (semaphore = CreateSemaphore(sa,initialCount,maximumCount,sName.c_str())) == NULL)
    {


    }

    sName is passed into this function as :

    string& sName

    How can I solve this?


    Thanks

    Friday, September 25, 2009 1:40 PM

Answers

All replies