01-11-2018
02:36 AM
- last edited on
01-04-2025
12:53 PM
by
Content Cleaner
Hi!
[Windows 10; CVI 2015 15.0.0(413)]
I am developing a .dll in c using LabWindows/CVI. I need a .fp file to include it in the .dll so i can see function prototypes when i include the .dll in TestStand.
I have difficulties creating a .fp file. When i see guideline for creating .fp (https://www.ni.com/en/support/documentation/supplemental/07/generate-ni-labwindows--cvi--function-pa...) i can see, that after creating the fp, there is already filled functions. But that doesnt work for me. When i go Options-> Generate Function Tree... i get the .fp file, but it is empty! Not prefilled with function prototypes.
Why in the guidline i have provided earlier (https://www.ni.com/en/support/documentation/supplemental/07/generate-ni-labwindows--cvi--function-pa...) there are generated functions in the .fp file? What i need to do to achieve the same result? I want to avoid adding the functions manually and filling the parameters my self.
I am enclosing snippets of my header file and what i fill into "generate function tree dialog".
Thanks for responds!
01-12-2018 02:50 AM
Hello,
FP generation is very sensitive to the syntax you use in the header file. It doesn't support all forms of declarations. In your case it seems it doesn't work if you use __declspec(dllexport) in your declarations. Adding __declspec in Default qualifier field is not a solution. What you can do is to remove __declspec(dllexport) from your declarations and choose that your dll to export the symbols from GM3_wrapper.h:
Build>>Target Settings>> Press Change button from Exports section on the bottom of the dialog. In DLL Export Options dialog choose Include file symbols and check your header file.
01-19-2018 02:54 AM
Hi!
Thanks for your advices. I have actually had done this and it warked. So i guess it was all about the specifiers.
Thanks
Jan