Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/cplusplus/124.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# CLR为导入的C+;创建具有不同参数的新函数+;代码 这是在C++代码中定义的原始函数,并使用命名空间SypLoLIDC装配导入到C语言应用程序中。但是,在创建函数的另一个定义时,无法使用仅包含字符串参数的执行函数,如 using namespace ParasolidAssembly; AssemblyClass::AssemblyClass() { bool startParasolid(); bool stopParasolid(); }; void AssemblyClass::Perform(string FileName) { bool bScale = true; // Var PK_ERROR_t error; int nParts, nGeoms;_C#_C++_Clr_Pinvoke - Fatal编程技术网

C# CLR为导入的C+;创建具有不同参数的新函数+;代码 这是在C++代码中定义的原始函数,并使用命名空间SypLoLIDC装配导入到C语言应用程序中。但是,在创建函数的另一个定义时,无法使用仅包含字符串参数的执行函数,如 using namespace ParasolidAssembly; AssemblyClass::AssemblyClass() { bool startParasolid(); bool stopParasolid(); }; void AssemblyClass::Perform(string FileName) { bool bScale = true; // Var PK_ERROR_t error; int nParts, nGeoms;

C# CLR为导入的C+;创建具有不同参数的新函数+;代码 这是在C++代码中定义的原始函数,并使用命名空间SypLoLIDC装配导入到C语言应用程序中。但是,在创建函数的另一个定义时,无法使用仅包含字符串参数的执行函数,如 using namespace ParasolidAssembly; AssemblyClass::AssemblyClass() { bool startParasolid(); bool stopParasolid(); }; void AssemblyClass::Perform(string FileName) { bool bScale = true; // Var PK_ERROR_t error; int nParts, nGeoms;,c#,c++,clr,pinvoke,C#,C++,Clr,Pinvoke,这位于名为Assemblyclass(来自元数据)的文件中,导致错误 错误144“ParasolidaAssembly.AssemblyClass.Perform”的最佳重载方法匹配(std.basic\u字符串,std::allocator>*)“有一些无效的参数c:\raveth\tab\\fabsFult\CultCaleStudio\SaleSysChy1.1.Cs 34 如何将代码导入到C?”中,将来自C++代码的DLL添加到项目中的调试文件夹中,并使用命名空间SypLoIdCalm组

这位于名为Assemblyclass(来自元数据)的文件中,导致错误
错误144“ParasolidaAssembly.AssemblyClass.Perform”的最佳重载方法匹配(std.basic\u字符串,std::allocator>*)“有一些无效的参数c:\raveth\tab\\fabsFult\CultCaleStudio\SaleSysChy1.1.Cs 34

如何将代码导入到C?”中,将来自C++代码的DLL添加到项目中的调试文件夹中,并使用命名空间SypLoIdCalm组件。AssemblyClass();执行(settings.DefaultSeedFileName);此外,从C++代码中添加了DLL文件作为C语言项目的参考。
amespace ParasolidAssembly
{
public class AssemblyClass : IDisposable
{
public AssemblyClass();

public override sealed void Dispose();
protected virtual void Dispose(bool A_0);
public void Perform(std.basic_string_char,std::char_traits_char_,std::allocator_char_ _* FileName);
public bool startParasolid();
public bool stopParasolid();
}
}