

extern "C" __declspec(dllexport) int TextFun1(int a, int b);
extern "C" __declspec(dllexport) void FunStr(CString str1,CString str2,char * chr);
extern "C" __declspec(dllexport) void DrawLine(CDC *pDC,CDialog *pDlg);
extern "C" __declspec(dllexport) void DrawLinePointToPoint(CDC *pDC,CDialog *pDlg,CPoint pt1,CPoint pt2);
extern "C" __declspec(dllexport) void DrawLinePP(CDC *pDC,CWnd *pWnd,CPoint pt1,CPoint pt2);
void DrawLinePointToPoint(CDC *pDC,CDialog *pDlg,CPoint pt1,CPoint pt2)
{
pDC->MoveTo(pt1);
pDC->LineTo(pt2);
}
//在CWnd对象上绘图
void DrawLinePP(CDC *pDC,CWnd *pWnd,CPoint pt1,CPoint pt2)
{
pDC->MoveTo(pt1);
pDC->LineTo(pt2);
}