My program need to print a curve, my solution is changing the curve into a picture, and this picture file (xxx.png) can be printed by using the default windows picture print
You can call ShellExecute from your program with print operation:
print
ShellExecute(NULL,"print","c:\\test.png",NULL,NULL,SW_HIDE);