I keep getting this error: cannot convert parameter 1 from \'char\' to \'LPCWSTR\'
cannot convert parameter 1 from \'char\' to \'LPCWSTR\'
int main(int argc, char argv[]) { // open port for I/
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