取消
显示结果 
搜索替代 
您的意思是: 

Shared Library Import (undefined structures)

I am trying to import a shared library DLL with its .h file from a motor controller vendor, but I get Undefined symbols for some functions.  I attached the two files.  Can anybody explain how to fix this?

0 项奖励
1 条消息(共 3 条)
3,216 次查看

@altran wrote:

I am trying to import a shared library DLL with its .h file from a motor controller vendor, but I get Undefined symbols for some functions.  I attached the two files.  Can anybody explain how to fix this?


For instance SAFEARRAY? That is a Microsoft data structure and you need the Microsoft SDK headers in order for this definition. Then you need to add the location of those headers to the import wizard configuration.

But you can safe yourself these troubles! SAFEARRAY is not a structure LabVIEW can handle through the Call Library Node directly. And it is definitely not a a structure you do want to handle yourself on diagram level by playing C compiler yourself. If you need any of these functions that use this or similar type defintions, the only feasable solution I can recommend is to start writing real C code and create a DLL wrapper for this DLL!

Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 项奖励
2 条消息(共 3 条)
3,188 次查看

I was afraid of that.  Thanks rofl

0 项奖励
3 条消息(共 3 条)
3,155 次查看