最近小弟使用delphi 开发cad插件,是调用CAD里面的ACTIVEX控件进行编程。遇到的问题是:如何在调用函数的时候使用常量。因为里面有个函数的一个参数是个常量。可是我再delphi中写上函数(acSelectionSetAll); //这句 的时候报错。说acSelectionSetAll没有定义 该怎么解决这个问题呢?大家帮帮忙!//下面是API说明AcSelect 常数; 仅用于输入 acSelectionSetWindow acSelectionSetCrossing acSelectionSetPrevious acSelectionSetLast acSelectionSetAll