Jump to content

Get dependencies to vi.lib, resource, user.lib and instr.lib


Recommended Posts

Posted

What is the best way to retrieve a list of all files (not only VIs) from vi.lib, resource, instr.lib and user.lib that the VIs from my currently opened project are linked to?

At the moment I am building source distributions with the "Exclude files from vi.lib" etc. checkmarks unchecked and the "Preserve file hierarchy" checked.

But building source distributions takes a long time, often fails, and I don't need the files from my project compiled and exported, just the ones from vi.lib etc.

So I am searching for a better solution, any ideas? Somehow the source distribution itself is retrieving the information I need, but how?

Regards,

Swen

Posted

You could use the "Get VI Dependencies" method on a VI Refnum for your top-level VI and set the Recursive parameter to true... it returns an array of paths... just take all the ones that are under vi.lib.

Posted

Thanks Ton and Aristos Queue,

for some reason I never stumbled upon the GetAllDescendents method, maybe I should have read the manual :book:

But now I'm happy with that, thanks again.

Swen

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.