Re: Newbie: Client calling a server but what CLSID
Thanks for your reply Igor
The idl has:
interface IBeepObj : IDispatch
[id(1), helpstring("method Beep")] HRESULT Beep([in] long lDuration);
helpstring("BeepServer 1.0 Type Library")
[default] interface IBeepObj;
From that I have
3 IDs and I thought you only get 2 (CLSID and IID). Which is which?
Assuming the last ID is the CLSID is it simply:
const CLSID CLSID_BeepObj =
Thanks for your help.
"Igor Tandetnik" <firstname.lastname@example.org> wrote in message
"Darwin" <email@example.com> wrote in message
I am doing a tutorial on COM. I have created a server object
(beepServer) with ATL. I want to call that object from a client. My
question is where do I get the CLSID and the IID from?
Look at the IDL file in your server project, and the .h file generated
I think that when it compiled on my machine it would have generated a
different CLSID to what the author's had, but the format is completely
It's just a different way to write the same bits.
With best wishes,
With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925