char array to LPCTSTR conversion in c

前端 未结 8 866

Does anyone know how to convert a char array to a LPCTSTR in c?

Edit:

For more reference, I need to add an integer to a string then convert that string to LP

8条回答
  •  遥遥无期
    2021-01-02 03:47

    try like this.........

    TCHAR *pcCommPort = TEXT("COM1");
    HANDLE h = CreateFile(pcCommPort,other arguments);
    

提交回复
热议问题