谁帮我一下,怎么调用这个函数啊?
Allows calling application to get a single waveform value from an array of values stored in DLL. Index parameter specifies which value in the Waveform array to retrieve. This command, if successful will return a floatingpoint variable containing the value. Result: One value of the Waveform (array of values) will be passed from the DLL to the Application.
int GetWaveform(float pValue, int Index)
Parameters: pValue: Pointer to floating point variable
Index: Integer, index into 1-based waveform array
Return Codes: 0 = Success
1 = Failure --------------------编程问答-------------------- int ret = GetWaveform(1.0, 1);
如果有头文件和lib文件,就#include进来,设置lib编译连接即可;
如果没有,就是用LoadLibrary加载dll,然后使用GetProcAddress得到函数指针,如上调用即可。
补充:.NET技术 , VC.NET