06-29-2010 07:24 AM
Hi,
I want to Integrate my LABWINDOWS application with an other Windows application in which MSDN library functions are used.
Is it possible to incorporate MSDN library in LABWINDOWS?
I want to use the MSDN library communication functions in LABWINDOWS.
Does LABWINDOWS supports adding of External libraries?
Regards
Surya
06-29-2010 07:32 AM
Yes, it is possible to include external libraries. You will need to include the corresponding h file in your code, something like
#include "my_library.h"
For more detailed information, there is a chapter called 'Setting Up Include Paths for LabWindows/CVI' in the help.
Wolfgang
06-29-2010 10:12 AM
hello Surya -
Check out this help document listing the available Win32 library functions depending upon your version of LabWindows/CVI. If the library functions are not in the standard libs LabWindows/CVI links against, you may need to add the necessary lib to your project.
Let us know if you have any more questions -
NickB
National Instruments
06-30-2010 02:24 AM
Hi Wolfgang,
Thanks for the reply and giving necessary info.
Regards
Suresh
06-30-2010 02:51 AM
Hi Nick,
Thanks for giving enough details.
Iam using LABWINDOWS CVI 9.0.1(Base version).
If I want to use WIN API functions which are not supported in Base version,do I need to upgrade LABWINDOWS to full version (or )Is there any option to get the the corresponding LIbrary files and incorporate in LABWINDOWS base version?
Regards
Suresh
06-30-2010 08:28 AM
Hey Suresh -
If you want to statically link against the Win32 API and use functions not present in the base version, you will need to upgrade. Although it would be more difficult, you can also LoadLibrary/GetProcAddress any Win32 API function you want with the base version, although that puts the burden on you to define prototypes, structures, etc.
NickB
National Instruments
12-03-2013 07:17 PM
Hi All,
I'm trying to use some functions of the 'SetupAPI' of windows. (Option 5 in the followinf link)
The first lines of code have these two statements:
#include <atlstr.h>
#include <SetupApi.h>
But none of these are found by the compiler. I have read some documentetation (Im very new on the windows SDK), and after looking at help inside Landwindows 9, specifically:
Programmer Reference»Compiler/Linker Issues»Calling Interface to Win32 API Functions in LabWindows/CVItopic of the LabWindows/CVI Help.
I dont see none of the files that I need to include.
Before, I had used windows sdk functions by inclding windows.h, and worked (I did that almost by chance).
Win32 API is installed in my distribution.
12-04-2013 07:06 AM
Hello sincrono, I have answered you here in the originating discussion. It is better not to spread a single question over multiple threads: since both these discussions are quite dated (and one of them already solved), it would even better to start a new thread instead, optionally linking to original discussions in the post body.