C++编写的DLL 在C#中调用出现的问题
只有dll和函数名称和参数的帮助文档
RC WINAPI LJIF_GetProfileData(IN LJIF_PROFILETARGET ProfileTarget, OUT LJIF_PROFILE_INFO* pProfInfo, OUT FLOAT* pProfile, IN INT nCount)
Description Acquires the profile data.
Parameter ProfileTarget The profile to acquire. Specify the profile with the following value.
typedef enum {
PROFILETARGET_HEAD_A = 0x00, // Head A
PROFILETARGET_HEAD_B = 0x01, // Head B
PROFILETARGET_CALC = 0x03, // After calculation
} LJIF_PROFILETARGET;
pProfInfo Sets the address for the X coordinate information structure that is used when storing the X coordinate information from the profile.
Specify the X coordinate information structure with the following values.
typedef struct {
FLOAT fXStart; // Starting point for the first point
FLOAT fXPitch; // X pitch for the data
}LJIF_PROFILE_INFO;
pProfile Acquires the profile data in FLOAT sequence.
*The profile alarm data becomes an invalid value (Nan).
nCount Sets the number of points for profile data. The profiles that can be acquired depend on the profile calculation settings.
When not set to "Wide": 1 to 800
When set to "Wide": 1 to 1600
Returned value 0x00 Completed without errors
0x01 Error in called parameters
0x02 No valid profile data (0x02 is returned when the controller is in communication mode)
现在对于float* 在C#中还有些问题,不知道怎么在C#中写,请各位大神帮忙啊
RC WINAPI LJIF_GetProfileData(IN LJIF_PROFILETARGET ProfileTarget, OUT LJIF_PROFILE_INFO* pProfInfo, OUT FLOAT* pProfile, IN INT nCount)
Description Acquires the profile data.
Parameter ProfileTarget The profile to acquire. Specify the profile with the following value.
typedef enum {
PROFILETARGET_HEAD_A = 0x00, // Head A
PROFILETARGET_HEAD_B = 0x01, // Head B
PROFILETARGET_CALC = 0x03, // After calculation
} LJIF_PROFILETARGET;
pProfInfo Sets the address for the X coordinate information structure that is used when storing the X coordinate information from the profile.
Specify the X coordinate information structure with the following values.
typedef struct {
FLOAT fXStart; // Starting point for the first point
FLOAT fXPitch; // X pitch for the data
}LJIF_PROFILE_INFO;
pProfile Acquires the profile data in FLOAT sequence.
*The profile alarm data becomes an invalid value (Nan).
nCount Sets the number of points for profile data. The profiles that can be acquired depend on the profile calculation settings.
When not set to "Wide": 1 to 800
When set to "Wide": 1 to 1600
Returned value 0x00 Completed without errors
0x01 Error in called parameters
0x02 No valid profile data (0x02 is returned when the controller is in communication mode)
现在对于float* 在C#中还有些问题,不知道怎么在C#中写,请各位大神帮忙啊
...全文
相关推荐
c# 调用C++编写 的DLL函数各种参数传递问题。
c# 调用C++编写 的DLL函数各种参数传递问题。数据处理问题等等。
C#使用CLR调用C++的DLL库
C#使用CLR调用C++的DLL库的windows完整解决方案 说明如下: 1、工程一:C++的DLL 2、工程二:C++的CLR的类库 3、工程三:C#的exe
C#引用C++动态库 dll 实例
C#引用C++动态库 dll 实例 项目含有C++编写DLL C#引用C++dll
CVI调用VC编写的Dll文件.pdf
详细介绍了使用VC++编写DLL lib 文件,以及对CVI调用的文件的过程,如有其他问题欢迎联系我。
CSharp调用Cpp代码完整实例.zip_C# CPP_C#中cpp_c#代码生成dll_c#调用cpp文件_c#调用c编写d
c#调用C实例。c通过生成DLL,里面有方法,需要一定格式。


