Jump to content

Complex C Structs in DLL's


Recommended Posts

Hi all,

I've got a DLL which I need to call from Labview, which contains a C struct which contains a pointer to an array of another C struct. Is there any way in Labview that I can do this without writing a wrapper DLL over the top to simplify the structures into 2 seperate ones?

What seems to be happening is that in the data in "pInput.ConfigPtr[0].Parameter" seems to contain a pointer or labviews own handle, instead of dereferencing it, which is really what I'd expect it to do anyway.

Here's the exported DLL function and the C struct definitions for your perusal...

extern

Link to comment

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.