调用DLL窗体 cannot assign a TFont to a TFont 问题
来源:互联网 发布:未来软件官网 编辑:程序博客网 时间:2024/05/17 13:09
把系统的graphics.pas拷贝到自己的工程目录,修改TCanvas.SetFont函数
procedure TCanvas.SetFont(Value: TFont);
begin
FFont.Assign(Value);
end;
给上面的代码加上 try..except保护,编程如下:
procedure TCanvas.SetFont(Value: TFont);
begin
try
FFont.Assign(Value);
except
end;
end;
然后在DLL工程中引入我们修改好的文件,重新编译DLL,该提示不会再出现,至于有什么后遗症,暂时未知。
procedure TCanvas.SetFont(Value: TFont);
begin
FFont.Assign(Value);
end;
给上面的代码加上 try..except保护,编程如下:
procedure TCanvas.SetFont(Value: TFont);
begin
try
FFont.Assign(Value);
except
end;
end;
然后在DLL工程中引入我们修改好的文件,重新编译DLL,该提示不会再出现,至于有什么后遗症,暂时未知。
0 0
- 主程序调用DLL窗体 cannot assign a TFont to a TFont 问题的彻底解决方案
- 主程序调用DLL窗体 cannot assign a TFont to a TFont 问题的彻底解决方案
- 调用DLL窗体 cannot assign a TFont to a TFont 问题
- DLL:cannot assign a tfont to a tfont
- Cannot assign a TFont to a TFont
- Cannot assign a TFont to a TFont!!
- cannot assign a tfont to a tfont
- delphi7 Cannot assign a TFont to a TFont问题
- DLL中报'Cannot assign a TFont to a TFont'的问题
- 关于Dll中“cannot assign a tfont to a tfont ”问题
- 主程序调用DLL窗体cannot assign a class to a class问题的彻底解决方案
- Cannot assign a device to node
- TFont里的字体大小
- TFont 类的常用属性:
- OPCAutomation_TLB.pas(1240): Cannot assign to a read-only property 问题解决
- cannot assign to 'self' outside of a method in the init family
- Cannot assign to 'self' outside of a method in the init family
- 关于error:Cannot assign to 'self' outside of a method in the init family
- springMVC+Hibernate简单的Demo
- 得到ImageView的图片,压缩成PNG,并得到二进制流数据
- CCS使用常见问题
- Android手机开发学习《二》
- 1045 access denied for user 'root'@'localhost' using password yes 解决办法
- 调用DLL窗体 cannot assign a TFont to a TFont 问题
- FastMM4
- XE笔记
- openstack中swift和cinder中的区别
- ubuntu下eclipse不识别手机解决方案
- poj1740 A New Stone Game(博弈)
- web开发N例-案例1:PHP嵌入html并输出html元素
- 二维数组和指向指针的指针
- thrift学习