Jump to content

understanding header files for dll import wizard


Recommended Posts

I'm trying to use the import dll wizard to import some external code for a camera that I purchased. Labview is having some trouble interpreting the header file for the library so I'm trying to work my way through the header file to understand it. One line of code that seems to be contributing to my problems is;

typedef void (LINKCONVENTION FGCALLBACK)(void* Context,UINT32 wParam,void* lParam);

I'm fairly new to using C++ so I'm not entirely sure what this line of code is doing. Is there anyone out there that could help explain to me what this code is doing?

Thanks in advance,

Philip Ashley

Link to comment
I'm trying to use the import dll wizard to import some external code for a camera that I purchased. Labview is having some trouble interpreting the header file for the library so I'm trying to work my way through the header file to understand it. One line of code that seems to be contributing to my problems is;

typedef void (LINKCONVENTION FGCALLBACK)(void* Context,UINT32 wParam,void* lParam);

I'm fairly new to using C++ so I'm not entirely sure what this line of code is doing. Is there anyone out there that could help explain to me what this code is doing?

Thanks in advance,

Philip Ashley

Maybe some help at :

http://forums.lavag.org/index.php?showtopi...p;hl=dll+import

http://forums.lavag.org/index.php?showtopi...p;hl=dll+import

Link to comment
I'm trying to use the import dll wizard to import some external code for a camera that I purchased. Labview is having some trouble interpreting the header file for the library so I'm trying to work my way through the header file to understand it. One line of code that seems to be contributing to my problems is;

typedef void (LINKCONVENTION FGCALLBACK)(void* Context,UINT32 wParam,void* lParam);

I'm fairly new to using C++ so I'm not entirely sure what this line of code is doing. Is there anyone out there that could help explain to me what this code is doing?

This is not C++ and the DLL importer couldn't deal with C++ at all. It's standard C and defines a function pointer that can be used as callback parameter to another function. As such it is an advanced C feature a lot of people have trouble to understand.

Worse it is not something LabVIEW could do directly for you, so if you need to use the function that takes this function pointer as a parameter, you can't do without writing an intermediate DLL and converting in there the callback into an occurrence or user event for LabVIEW.

Rolf Kalbermatter

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.