There's two versions of CreateFile:
CreateFileA takes a ASCII parameters (char *)
CreateFileW takes Unicode parameters (wchar *)
Typically, if you have Unicode defined, CreateFileW is aliases to CreateFile, else CreateFileA is aliased to CreateFile.
You can still use either by using the proper names:
CreateFileW(foo.utf16(), ...)
QString foo = "\\\\.\\COM1";
CreateFileW(foo.utf16(), ...)
To copy to clipboard, switch view to plain text mode
char foo[] = "\\\\.\\COM1";
CreateFileA(foo, ...)
char foo[] = "\\\\.\\COM1";
CreateFileA(foo, ...)
To copy to clipboard, switch view to plain text mode
Bookmarks