Newsgroups : Borland : borland.public.delphi.nativeapi.win32 : 2007 Feb : How to typecast interface, to obtain a string?
| Subject: | How to typecast interface, to obtain a string? |
| Posted by: | "Arthur Hoornweg" (antispam.hoornweg@casema.nl.net) |
| Date: | Thu, 1 Feb 2007 12:48:27 |
Hello all,
for debugging purposes I'd like to convert an interface into a string.
Something like:
Procedure DebugIntf (const remark:Ansistring; CONST i : iunknown);
VAR t:Ansistring;
begin
t:=remark+' interface=' + inttostr(cardinal(i));
outputdebugstring(pchar(t));
end;
However, I have no idea if this typecast makes sense, or if an
interface is a 32-bit entity at all. Can anyone shed some light
on this?
--
Arthur Hoornweg
(In order to reply per e-mail, please just remove the ".net"
from my e-mail address. Leave the rest of the address intact
including the "antispam" part. I had to take this measure to
counteract unsollicited mail.)