I don't understand what exactly you are asking for. You want to make a line. So you need startpoint and endpoint.
What do you mean by: "start point is dragging a long polyline"? Do you have a given polyline, want to drag it's endpoint and then use the new endpoint as startpoint for the new line?
If you have a given startpoint ptStart you could simply use acedGetPoint(ptStart, L"Endpoint:" ptEnd) to select the endpoint ptEnd. AutoCAD will draw a rubber-band line from ptStart to the cursor point then.
A more sophisticated and flexible approach is to use an jig (AcEdJig). See sample <ArxSdk>\samples\database\elipsjig_dg.
At which point do you need help? Selecting the points? Implementing a jig? Creating the line entity?
Thomas Brammer ● Software Developer ● imos AG ● LinkedIn ● 
If an answer solves your problem please [ACCEPT SOLUTION]. Otherwise explain why not.