 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
LH Guest
|
Posted: Thu Dec 23, 2004 9:02 am Post subject: Delphi internal record types in OLE automation |
|
|
Hi,
I want to be able to create a function that fx. returns a TPoint.
I can create a TPoint record in the typelib. editor, and use it in Delphi,
but Delphi (of course) see the types as two differend types (Because it is
declared in two differend units).
Anyway I can use the TPoint type from the Windows unit in the typelib?
Merry Christmas,
L.Holm
|
|
| Back to top |
|
 |
George Birbilis Guest
|
Posted: Thu Dec 23, 2004 2:53 pm Post subject: Re: Delphi internal record types in OLE automation |
|
|
| Quote: | I want to be able to create a function that fx. returns a TPoint.
I can create a TPoint record in the typelib. editor, and use it in Delphi,
but Delphi (of course) see the types as two differend types (Because it is
declared in two differend units).
Anyway I can use the TPoint type from the Windows unit in the typelib?
|
Delphi has some automation wrappers for its Font etc. datatypes
maybe you could see how it does it for the Font etc. and register your own
automation wrappers or something for Point as well
--
-----
George Birbilis (birbilis (AT) kagi (DOT) com)
http://www.kagi.com/birbilis
--------------
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|