IconData.hIcon:=LoadIcon(HInstance, 'ag ');   资源中没有'ag '这个资源。提示:注意你后面是不是多了一个空格?
  你改成Application.Icon.Handle,看看能不能出来?