c ++ std :: map< std :: string,std :: vector< std :: string>> & dataStrings)到c#TYPE [英] c++ std::map<std::string, std::vector<std::string>> &dataStrings) to c# TYPE
问题描述
c ++中c#转换类型的类型是什么。我在c ++"s td :: map< std :: string,std :: vector< std :: string>>中使用此输入&安培; dataStrings 强>)"并尝试将此函数调用为csharp
What is the type in c# conversion type from c++. I am using this input in c++ "std::map<std::string, std::vector<std::string>> &dataStrings)" and trying to call this function into csharp
C ++ EXPORT
DECLDIR int GetColor (char * filename ,double num,
std :: map< std :: string,std: :vector< std :: string>>& dataStrin gs );
DECLDIR int GetColor(char* filename, double num, std::map<std::string, std::vector<std::string>> &dataStrings);
C#导入:我不知道在c#中使用的名称或使用的类型 对于导入第3个参数"dataStrings"
C# IMPORT: I don't know to name or what type to use in c# for the import 3rd parameter "dataStrings"
[DllImport(@" .. \ ThhirdParty \ ColorPI.dll",CharSet = CharSet.Ansi,CallingConvention = CallingConvention。 Cdecl)]
[DllImport(@"..\ThirdParty\ColorAPI.dll", CharSet = CharSet.Ansi, CallingConvention = CallingConvention.Cdecl)]
public static extern int GetColor(string filename,double num,
???? dataStrings);
public static extern int GetColor(string filename, double num, ???? dataStrings);
pianoboyCoder
pianoboyCoder
推荐答案
c ++中c#转换类型的类型是什么。我在c ++"s td :: map< std :: string,std :: vector< std :: string>>中使用此输入&安培; dataStrings 强>)"并尝试将此函数调用为csharp
What is the type in c# conversion type from c++. I am using this input in c++ "std::map<std::string, std::vector<std::string>> &dataStrings)" and trying to call this function into csharp
C ++ EXPORT
DECLDIR int GetColor (char * filename ,double num,
std :: map< std :: string,std: :vector< std :: string>>& dataStrin gs );
DECLDIR int GetColor(char* filename, double num, std::map<std::string, std::vector<std::string>> &dataStrings);
C#导入:我不知道在c#中使用的名称或使用的类型 对于导入第3个参数"dataStrings"
C# IMPORT: I don't know to name or what type to use in c# for the import 3rd parameter "dataStrings"
[DllImport(@" .. \ ThhirdParty \ ColorPI.dll",CharSet = CharSet.Ansi,CallingConvention = CallingConvention。 Cdecl)]
[DllImport(@"..\ThirdParty\ColorAPI.dll", CharSet = CharSet.Ansi, CallingConvention = CallingConvention.Cdecl)]
public static extern int GetColor(string filename,double num,
???? dataStrings);
public static extern int GetColor(string filename, double num, ???? dataStrings);
这篇关于c ++ std :: map< std :: string,std :: vector< std :: string>> & dataStrings)到c#TYPE的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!