Error code 2 is
ERROR_FILE_NOT_FOUND
("The system cannot find the file specified.").
You are trying to use the file name prefix to support COM ports >= 10. But these use back slashes ("\\.\") instead of forward slashes (//./). So try this:
m_hcomm = CreateFile(L"\\\\.\\" + Portname,
GENERIC_READ | GENERIC_WRITE,
0,0, OPEN_EXISTING, 0,0);
If you still get an error check if the port name is valid and the port exists.