如何从DLL返回一个实例? [英] How to return an instance from a DLL?
问题描述
DLL有另一个UNIT,它是一个Form,它有一个用于存储图像的TImageList。我写了一个函数,我想从TImageList(从DLL到主机应用程序)返回一个图像,我该怎么做?
谢谢
Yulién。
请阅读borland.public.delphi.nativeapi上的旧线程: DLL中的Delphi对象 - 这是否工作?。
最后一条消息中的.pdf的链接已经过去了,但是由于Internet Archive Wayback Machine,可以下载它(请参阅从DLL导出对象在第412页) p>
编辑:原来,为了我们的目的,这本书的有趣部分也可以在Google图书上使用,所以可以在线阅读。
I am programming a DLL. I have to return an instance of TBitmap to the host application. The DLL has another UNIT, wich is a Form, that it has a TImageList for storing images. I wrote a function that I want to return an Image from the TImageList (from the DLL to the host application. How can I do this?
Thanks, Yulién.
Read this old thread on borland.public.delphi.nativeapi: Delphi Object in DLL - does this work?.
The link to a .pdf in the last message is gone, but thanks to Internet Archive Wayback Machine one can download it (look at Exporting Objects from DLLs at page 412).
Edit: it turns out that book's interesting part, for our purpose, is also available @ Google Books, so one can read it on-line.
这篇关于如何从DLL返回一个实例?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!