POV-Ray : Newsgroups : povray.off-topic : Inspect DLL : Re: Inspect DLL Server Time
5 Sep 2024 09:22:35 EDT (-0400)
  Re: Inspect DLL  
From: Fredrik Eriksson
Date: 12 Oct 2009 12:09:27
Message: <op.u1o251a97bxctx@e6600>
On Mon, 12 Oct 2009 17:09:06 +0200, Invisible <voi### [at] devnull> wrote:
> More puzzling: CoGetClassObject() allows you to get hold of any class by  
> its ClassID. CoCreateInstance() creates any object given a ClassID and  
> an InterfaceID. This gives you a pointer to the object's interface. But  
> I cannot find any way of actually calling methods. If you have a DLL,  
> you can do GetProcAddress() to look up a function and call it. But if  
> you have an interface pointer, there doesn't seem to be any way to call  
> methods of the interface...

An "interface" is a list of function pointers. In C and C++ the layout of  
an interface is typically described in a header file.



-- 
FE


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.