40楼给的方法就是说在Delphi中的
class function CoLayer.Create: CMapXLayer;
begin
Result := CreateComObject(CLASS_Layer) as CMapXLayer;
end;
在平台上无法调用,所以你把这个函数的内容(Result := CreateComObject(CLASS_Layer) as CMapXLayer;)写到X3中
由于CreateComObject不能用,你用CreateOleObject来代替
直接在X3平台上写
Result := Business.System.ComObj.CreateOleObject('xxxx') as CMapXLayer;
这样就在X3平台上创建CMapXLayer接口了