C4564 warning when creating a C ++ / CLI project that consumes a strongly typed dataset

After upgrading to VC ++ 2010, warning C4564 is raised (the method determines an unsupported default parameter) when creating a C ++ / CLI project that consumes a syntactic data set from a C # project.

ReadersManager.cpp (311): warning C4564: the 'SetNewRecord' method of the 'System :: Data :: DataTable' class defines an unsupported default parameter 'action'

Specify a value of "2" explicitly when calling a method

This diagnosis occurred when importing the type "System :: Data :: DataTable" from the assembly "System.Data, Version = 4.0.0.0, Culture = neutral, PublicKeyToken = b77a5c561934e089".

This diagnosis occurred when importing the type 'System :: Data :: TypedTableBase' from the assembly 'System.Data.DataSetExtensions, Version = 4.0.0.0, Culture = neutral, PublicKeyToken = b77a5c561934e089'.

This diagnostic occurred while importing the type 'MyProductDataStoreCLR :: ReadersDataSet :: ReadersDataTable' from the assembly 'MyProductDataStoreCLR, Version = 4.5.0.9, Culture = neutral, PublicKeyToken = null'.

A warning occurs when called System::Data::DataTable::Select, so I can’t change anything in the calling code related to SetNewRecord.

Is this a C ++ / CLI issue that does not support the new features of the additional features of C #?

+3
source share
1

4, " , - ". .NET. VB.NET , # 4. C++/CLI , , . , C++ . C++/CLI , , .

, . , , .

#pragma warning(disable:4564) ""> ""> C/C++> ""> " ".

+10

Source: https://habr.com/ru/post/1751188/


All Articles