使用 GDI+在德尔福XE中
以下内容在 Delphi XE2 中有效,但在 Delphi XE 中引发访问冲突:
uses
GDIPAPI, GDIPOBJ;
...
TGPImage.Create (TStreamAdapter.Create (MemStream)); // throws AV
How can I use GDI+ in Delphi XE?
The following works in Delphi XE2 but throws an access violation in Delphi XE:
uses
GDIPAPI, GDIPOBJ;
...
TGPImage.Create (TStreamAdapter.Create (MemStream)); // throws AV
How can I use GDI+ in Delphi XE?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用 Progdigy 中的 GDI+ 单元并重命名它们以避免与 TeeCharts 包中使用的单元发生冲突解决了这个问题。 XE 没有附带这些单元的源代码(XE2 有),所以我不确定为什么它失败了。
Using the GDI+ units from Progdigy and renaming them to avoid conflicts with the ones used in the TeeCharts package solves the issue. XE does not come with sources for these units (XE2 does), so I'm not sure why it failed.