I have written codes for analyzing spectrum in OriginC. Before analyzing it, I want to perform steps "analysis<data manipulation<subtract straight line" programatically in graph. After surfing in origin help and over net for the same, I came across use of subtract_line x-function. I added command line described in http://www.originlab.com/doc/X-Function/ref/subtract_line#Examples after adding header files #include <XFBase.h> and #include <..\Originlab\graph_utils.h> in my program but still I am getting errors.
I don't know how to use/call x-function in origin C codes and perform tasks programatically. Thus, please help me with same, even minute hint will be very appreciated.