我从一个用C写的DLL调用一个函数。在DLL的文档中,它说函数的一个参数应该是:
an address of an array of 32-bit floating point numbers to be populated with results.
我对C不是很熟悉,有些东西告诉我这是一个C特性。我不太确定我该用什么作为我的论点。你知道吗
我正在使用ctypes。你知道吗
以下是DLL文档中的一个示例:
float fResult; long lRetVal = D2R_GetSingleResult( "E:\\Folder", "E:\\Folder\\Proj1", 2001001, &fResult, 1, NULL, NULL );
另一种方法是声明函数类型,以帮助
ctypes
推断所有内容本身:我需要如下定义数组参数:
谢谢@fukanchik的帮助,你让我走上了正确的道路!你知道吗
相关问题 更多 >
编程相关推荐