02-07-2011 03:24 PM
Hi All,
I am interfacing a PMC-100 motor controller via Performax protocol using labwindows.
I need to link PerformaxCom.dll explicitly and call some functions from it. I am trying to call this function
BOOL fnPerformaxComOpen(IN DWORD dwDeviceNum, OUT HANDLE* pHandle);
But the problem is that I don't know how to pass parameter to it.
Thanks a lot!
Tianchi
Solved! Go to Solution.
02-07-2011 04:20 PM
Tianchi:
If you want to explicitly link, you can look at this article: http://zone.ni.com/devzone/cda/tut/p/id/8503
It has a snippet of code which shows passing two parameters to a DLL function.
But regarding your statement that "I don't know how to pass parameter to it", in the example you reference, you are passing a parameter: it's just a string constant rather than a variable.
02-08-2011 09:25 AM
Hi,
Thank you, that link was helpful. I turned out that i didn't typedef the function right. So I could not pass two parameters to the function.