PS: What system are you using? On a Windows 10 with the 9.2.6 version it showed me some gibberish chars, not sure why the wide chars to chars conversion failed. I modified the C++ function to just get the getLastErrorCode() and indeed it’s 6 like you.