POV-Ray : Newsgroups : povray.off-topic : Low-level fun : Re: Low-level fun Server Time
29 Sep 2024 01:25:32 EDT (-0400)
  Re: Low-level fun  
From: clipka
Date: 20 Sep 2009 12:45:50
Message: <4ab65c3e$1@news.povray.org>
Orchid XP v8 schrieb:

> (According to Wikipedia, seems to be GetProcAddress()...)
> 
> Seriously, I see CoInitialise() and CoUninitialise() to start/stop the 
> COM library. I see CoGetClassObject() and CoCreateInstanceEx(), but I 
> can't see a CoCallMethod() or similar anywhere.

That's because from C, you call the methods directly via their procedure 
addresses - which, as Wikipedia correctly claims, you get via 
GetProcAddress().

So you'd need to declare a function pointer to whatever type it should 
be according to the COM object's interface definition, assign it a value 
via GetProcAddress(), and then invoke that function pointer just like 
you would invoke any other function.


Post a reply to this message

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