C++编写的DLL 在C#中调用出现的问题

huoge0926 2016-07-14 10:23:31
只有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#中写,请各位大神帮忙啊
...全文
96 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

110,568

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Web++
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧