在Dll 中 报 cannot assign a TBitmap to…… 错
白耗子 2010-03-25 02:55:30 自己写的一个Dll
把窗体F传到Dll 中
然后给窗体F中的一个控件Btn(TsuiImageButton类型) 的PicNormal (Tpicture 类) 赋值
F.Btn.PicNormal:=TPicture(GetPicBmp(ENormal)); //GetPicBmp(ENormal) 返回一个Bmp图片
如果不封装到Dll
直接在窗体中这种方法没问题
封装到Dll 后 就报 cannot assign a TBitmap to a TPicture 错
我换了其他方式
新建一个 Tpicture 然后再赋给 PicNormal 也会报类似错误
那位高人见过这的问题啊~~
在线等~