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

Insert DLL into LLB

已解决!
转到解答

Hi there,

 

Does it make sense to distribute a dll into a llb? if yes how can I do it?

 

Cheers

Charly

It's always sunny in California! Certified LabVIEW Associate Developer!
0 项奖励
1 条消息(共 5 条)
3,854 次查看

Hi there 

 

No, this makes no sense. Your OS can't find the DLLs if it's hidden inside a llb.

 

Why do you want to hide the DLL?

 

(please ignore attachment)

Message Edited by chrisger on 01-13-2009 12:09 AM
Best regards
chris

CL(A)Dly bending G-Force with LabVIEW

famous last words: "oh my god, it is full of stars!"
2 条消息(共 5 条)
3,827 次查看

Hi Chris,

 

I use a dll with a LabVIEW program and I think it would be convenient to distribute all the files (including the dll) together into a llb.

 

Are you saying that a vi calling the dll couldn't find the dll if they're all into a llb? In this case it doesn't make sense to group them in a dll.

 

Thanks,

Charly

It's always sunny in California! Certified LabVIEW Associate Developer!
0 项奖励
3 条消息(共 5 条)
3,799 次查看
解答
已被主题作者 CharlyStardust 接受
You shouldn't (and cannot, as far as I know) put anything other than a VI in an llb.  Only LabVIEW knows how to find a VI inside an LLB; your operating system knows nothing about it.  When you make a call to a dll from your code, you're asking the operating system to find that dll and call a function inside of it.  If the dll were to be hidden inside an llb, the operating system would be unable to find the dll and the function call would fail.  So, the short answer to your question is no, do not put dlls in llbs.  Use a zip file instead.
0 项奖励
4 条消息(共 5 条)
3,779 次查看
Thank you Chris and Nathan
It's always sunny in California! Certified LabVIEW Associate Developer!
0 项奖励
5 条消息(共 5 条)
3,770 次查看