I am using PVS-studio in converting a program to x64 from x86. Upon the execution of an analysis run in PVS-Studio I get the following x64 related warnings for every use of the A2W macro defined in atlconv.h:
V303 The function 'lstrlen' is deprecated in the Win64 system. It is safer to use the 'wcslen' function.
V104 Implicit conversion of '_convert' to memsize type in an arithmetic expression: _convert * sizeof (WCHAR)
V107 Implicit type conversion third argument '_convert * sizeof (WCHAR)' of function 'AtlW2AHelper' to 32-bit type.
Since the atlconv is ouside of my reach, should I simply ignore these warnings or what would be the preferred way otherwise of doing the A2W macro on x64?
In case this helps anyone else, I did solve it using the CStringW constructor.