![](/i/fill.gif) |
![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
On Mon, 12 Oct 2009 17:09:06 +0200, Invisible <voi### [at] dev null> 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
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
Invisible wrote:
> ...see a pattern yet?
Yes. It means Sun is too stupid to even know what a "GUID" is.
> Yep, there's a COM registration for every point-releast from 1.3.0_03 up
> to 1.5.0_11. Which is pretty crazy, no?
No.
> Next time you install some program and it says "registering components"
> or "writing registry keys", this is what it's doing. It's registering
> millions of COM ClassIDs!
Yes.
--
Darren New, San Diego CA, USA (PST)
I ordered stamps from Zazzle that read "Place Stamp Here".
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
Invisible wrote:
>> I don’t even see the code anymore; all I see now is blonde, br
unette,
>> redhead...
>
> WIN!
For a minute there, I was honestly worried you might say "What?"
--
Darren New, San Diego CA, USA (PST)
I ordered stamps from Zazzle that read "Place Stamp Here".
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
Invisible wrote:
> Of course, with no clue what parameters each such function takes, or
> what the hell it's supposed to do, it's still pretty hopeless I guess...
Avoid that crap. That's exactly why there's so much crap-ware out there.
People release crap, and then (even worse) others battle to make it work for
them in a crappy way instead of just saying "Forget it, this is crap."
(Can you tell I'm sick of crapware today?)
--
Darren New, San Diego CA, USA (PST)
I ordered stamps from Zazzle that read "Place Stamp Here".
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
>> ...see a pattern yet?
>
> Yes. It means Sun is too stupid to even know what a "GUID" is.
This was my conclusion also.
Surely the correct behaviour would be to register a single interface and
give it a "do you support this API version?" method...
>> Next time you install some program and it says "registering
>> components" or "writing registry keys", this is what it's doing. It's
>> registering millions of COM ClassIDs!
>
> Yes.
Heh. I lost count of how many Office-related DLLs are in there. There's,
like, A LOT!
--
http://blog.orphi.me.uk/
http://www.zazzle.com/MathematicalOrchid*
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
>>> I don’t even see the code anymore; all I see now is blonde, brunette,
>>> redhead...
>>
>> WIN!
>
> For a minute there, I was honestly worried you might say "What?"
Well, it's not as if I've memorised every scene and every line of dialog
from The Matrix or anything like that...
...Mr Anderson.
--
http://blog.orphi.me.uk/
http://www.zazzle.com/MathematicalOrchid*
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
>> ...see a pattern yet?
>
> Yes. It means Sun is too stupid to even know what a "GUID" is.
Did anybody else notice that, unlike every other GUIDE on the planet,
these ones have a *pattern* in them?
CAFE-EFAC? Oh, that's cute. ABCDEF-FEDCBA? Come on, guys...
--
http://blog.orphi.me.uk/
http://www.zazzle.com/MathematicalOrchid*
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
Ooo... Gold Dust.
http://msdn.microsoft.com/en-us/magazine/cc301805.aspx
--
http://blog.orphi.me.uk/
http://www.zazzle.com/MathematicalOrchid*
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
Orchid XP v8 wrote:
> Surely the correct behaviour would be to register a single interface and
> give it a "do you support this API version?" method...
Not necessarily. But I'm pretty sure you're not going to get good "globally
unique identifiers" by manually including english words in them.
> Heh. I lost count of how many Office-related DLLs are in there. There's,
> like, A LOT!
That's because you can program Office from outside of Office.
--
Darren New, San Diego CA, USA (PST)
I ordered stamps from Zazzle that read "Place Stamp Here".
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
Orchid XP v8 wrote:
> http://msdn.microsoft.com/en-us/magazine/cc301805.aspx
Nice of them to include the link to part 2. :-P
http://msdn.microsoft.com/en-us/magazine/cc301808.aspx
--
http://blog.orphi.me.uk/
http://www.zazzle.com/MathematicalOrchid*
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |