cannot convert parameter 1 from 'char' to 'LPCWSTR'

前端 未结 5 890
遥遥无期
遥遥无期 2020-12-02 20:14

I keep getting this error: cannot convert parameter 1 from \'char\' to \'LPCWSTR\'

int main(int argc, char argv[])    
{

   // open port for I/         


        
5条回答
  •  Happy的楠姐
    2020-12-02 21:02

    Depending on your compiler setting for CharacterSet, you may need to perform a multibyte / widechar conversion, or change the CharacterSet if you don't care what it is.

    For converting with MultiByteToWideChar, see the following...

    http://www.codeguru.com/forum/showthread.php?t=231165

提交回复
热议问题