如何传递一个四元素坐标数组到函数中:
procedure TFrmMain.SelectMapObject(const pts:array of TPoint;const index:integer;const otp:integer);
begin
tmpselectedobj.Points:=pts;
tmpselectedobj.id:=index;
tmpselectedobj.otype:=otp;
tmpselectedobj.selected:=true;
end;这句话:tmpselectedobj.Points:=pts;编译时通不过,说是类型不匹配,
tmpselectedobj.Points:Array[0..3] of TPoint如何解决阿?
procedure TFrmMain.SelectMapObject(const pts:array of TPoint;const index:integer;const otp:integer);
begin
tmpselectedobj.Points:=pts;
tmpselectedobj.id:=index;
tmpselectedobj.otype:=otp;
tmpselectedobj.selected:=true;
end;这句话:tmpselectedobj.Points:=pts;编译时通不过,说是类型不匹配,
tmpselectedobj.Points:Array[0..3] of TPoint如何解决阿?
解决方案 »
- delphi调用C++ dll问题!
- 如何在程序中给checktree中的某项的选择框打钩
- 怎么用quickreport给每页都加上一个统计信息
- 如何用命令打开指定网页文件("D:\Ks\MyHtml.html")
- 如何在dll中检测主调应用程序是否激活? 急手的事情?
- 建立网络数据库程序的问题>>>
- GetPrinter就没有人用过吗??????????
- 如何使用消息框
- 请问怎么禁止屏保的运行
- 如何动态创建PageControl中的TabSheet?
- 象miky的《最漂亮的桌面时钟。悼念一颗陨落的星星》中的不规则窗体用路径函数如何实现?
- 各位前辈,在生成的EXE 图标(icon)时,怎样更改设成自己想要的logo?
procedure TFrmMain.SelectMapObject(const pts:TPts;const index:integer;const otp:integer);
TArrayTPoint = array of TPoint;procedure TFrmMain.SelectMapObject(const pts:TArrayTPoint ;const
pTpts = ^Tpts;
Tpts=array of TPoint;
procedure TFrmMain.SelectMapObject(const pts:pTPts;const index:integer;const otp:integer);
begin
tmpselectedobj.Points:=pts;
tmpselectedobj.id:=index;
tmpselectedobj.otype:=otp;
tmpselectedobj.selected:=true;
end;这样行不?