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 methodThis 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'.
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.
System::Data::DataTable::Select
SetNewRecord
Is this a C ++ / CLI issue that does not support the new features of the additional features of C #?
4, " , - ". .NET. VB.NET , # 4. C++/CLI , , . , C++ . C++/CLI , , .
, . , , .
#pragma warning(disable:4564) ""> ""> C/C++> ""> " ".
#pragma warning(disable:4564)
Source: https://habr.com/ru/post/1751188/More articles:Creating .ICS files, adding to Outlook - c #https://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1751184/uiview-how-to-restrict-touches-to-it-exclusively&usg=ALkJrhjP4t3x5iUP3r0zhmAV5TPENWcoFAis a workflow for creating a dynamic workflow in a web application? - c #C ++ mixins through templates: why doesn't this work? - c ++Creating a photo collage image attached using PHP from multiple images - phpPrint ER charts for mySQL database (800+ tables) - sqlHow to make ZipArchive not overwrite specific files and folders - phpMakefile to compile .cpp and .h series in lib - c ++Устойчивость ранних выпусков продукта - project-managementDetecting if an item is selected in the list or not through jquery - jqueryAll Articles