C4996 error of RhinoOffsetCurve()

Hi;
I want to offset a curve in c++ with this code:

CRhinoGetObject go;
go.SetCommandPrompt(L"select curve");
go.SetGeometryFilter(CRhinoGetObject::curve_object);
go.EnableSubObjectSelect(FALSE);
go.EnableGroupSelect(FALSE);
go.GetObjects(1, 1);
if (go.CommandResult() != CRhinoCommand::success)
{
	return CRhinoCommand::cancel;
}
ON_BoundingBox bbox;
go.Object(0).Curve()->GetTightBoundingBox(bbox);
ON_SimpleArray<ON_Curve*> curves_out;

if (RhinoOffsetCurve(*go.Object(0).Curve(),
	RhinoApp().ActiveView()->ActiveViewport().ConstructionPlane().m_plane.zaxis, bbox.Center(),
	0.2, curves_out, RhinoApp().ActiveDoc()->AbsoluteTolerance(), 0.0, 1))
{
	RhinoApp().ActiveDoc()->AddCurveObject(*curves_out[0]);
}
context.m_doc.Redraw();
return CRhinoCommand::success;

but the following error occurred in vs2017:


How can I solve this problem?

As your error says: use the other version of RhinoOffsetCurve.

https://developer.rhino3d.com/api/cpp/group___rhino.html#gac8ece827fe169f038059502343e58ec6

Hi @rgr:
Thank you.