QUOTE (Wendy L @ Nov 1 2008, 03:56 AM)  
 
Hi 
And thanks for the answers. I have been told that it is possible to include the .h files from Labview and then use these files to do the drawing of the graph. I have also solved the linker problem. But now I get a -10 error when I try to use PlotWaveform. Could you please have a look at my code: 
#include "stdafx.h" 
#include <stdio.h> 
#include <winsock2.h> 
#include <stdlib.h> 
#include <utility.h> 
#include <ansi_c.h> 
#include <cvirte.h> 
#include <userint.h> 
 if (InitCVIRTE (0, 0,0)==0) 
     return -1;    //Out of memory 
int panelHandle = NewPanel(parentPanel,"Graph",top,left,height,with); 
printf("panelHandle: %d\n",panelHandle); 
int nNewCtrl = NewCtrl(panelHandle,CTRL_NUMERIC,0,10,10); 
printf("nNewCtrl: %d\n",nNewCtrl); 
DisplayPanel (panelHandle); 
int PlotWaveform_RETURN_VALUE = PlotWaveform (panelHandle, nNewCtrl, myArray,4,VAL_DOUBLE,1.0,0.0,0.0,1.0,VAL_FAT_LINE,VAL_DOTTED_SOLID_SQUARE,VAL_SOLID,1,VAL_RED); 
printf("PlotWaveform_RETURN_VALUE: %d\n",PlotWaveform_RETURN_VALUE); 
RefreshGraph (panelHandle, nNewCtrl); 
The result when I run the program is the following: 
panelHandle: 1 
nNewCtrl: 2 
PlotWaveform_RETURN_VALUE: -10 
What is the problem with the PlotWaveform function, what does the -10 error indicate? 
BR 
Benjamin