0

プログラムを x86 から x64 に変換する際に PVS-studio を使用しています。PVS-Studio で解析を実行すると、atlconv.h で定義された A2W マクロを使用するたびに、次の x64 関連の警告が表示されます。

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.

atlconv は私の手の届かないところにあるので、これらの警告を単に無視する必要がありますか、それとも x64 で A2W マクロを実行するための推奨される方法は何でしょうか?

4

2 に答える 2

0

これが他の人に役立つ場合は、 CStringW コンストラクターを使用して解決しました。

于 2015-10-06T06:41:34.963 に答える