Re: Newbie: Client calling a server but what CLSID
"Darwin" <darwin@nowhere.com> wrote in message
news:%23JxDZGEdIHA.5984@TK2MSFTNGP06.phx.gbl
The idl has:
import "oaidl.idl";
import "ocidl.idl";
[
object,
uuid(B5E4CC5E-A568-4776-BE59-C61ABD07F7D9),
This is the IID
dual,
helpstring("IBeepObj Interface"),
pointer_default(unique)
]
interface IBeepObj : IDispatch
{
[id(1), helpstring("method Beep")] HRESULT Beep([in] long lDuration);
};
[
uuid(C98F127F-2DFD-41D3-98F5-17AE5F4825FB),
This is the LIBID (ID of a type library)
version(1.0),
helpstring("BeepServer 1.0 Type Library")
]
library BEEPSERVERLib
{
importlib("stdole32.tlb");
importlib("stdole2.tlb");
[
uuid(E3829EAD-F1BC-4ECF-B14B-687D3EC2A63D),
This is CLSID
helpstring("BeepObj Class")
]
coclass BeepObj
{
[default] interface IBeepObj;
};
};
Assuming the last ID is the CLSID is it simply:
const CLSID CLSID_BeepObj =
{0xE3829EAD,0xF1BC,0x4ECF,{0x68,0x7D,0x3E,0xC2,0xA6,0x3D}};
Have you considered the last part of my message, and looked at the
generated .h file?
--
With best wishes,
Igor Tandetnik
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