Hello Silvio,
A good start would be to read Chapter 3 of the "LabWindows/CVI Programmer Reference Manual" especially the section entitled "Using LabWindows/CVI Libraries In External Compilers". You can find a copy of our manuals online at "http://www.ni.com/manuals".
Jeremiah Cox
Applications Engineer
National Instruments
http://www.ni.com/ask