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

查看:76
本文介绍了c ++ std :: map< std :: string,std :: vector< std :: string>> & dataStrings)到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&lt; std :: string,std :: vector&lt; std :: string&gt;&gt; &amp; dataStrings)到c#TYPE的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆